Skip to content

Commit

Permalink
builder docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
olomix committed Sep 11, 2024
1 parent 66a4e36 commit 8b095f5
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,28 @@ jobs:
- uses: docker/build-push-action@v6
with:
push: false
outputs:
type=docker
platforms: linux/amd64,linux/arm64
outputs: type=docker
platforms: linux/arm64
file: .github/images/Dockerfile.build
context: ./.github/images/context.build
cache-from: type=gha
cache-to: type=gha,mode=max
tags: builder:amd64

- uses: docker/build-push-action@v6
with:
push: false
outputs: type=docker
platforms: linux/arm64
file: .github/images/Dockerfile.build
context: ./.github/images/context.build
cache-from: type=gha
cache-to: type=gha,mode=max
tags: builder:latest
tags: builder:arm64

- run: docker run --platform=linux/arm64 builder:arm64 uname -a

- run: docker run --platform=linux/arm64 ubuntu uname -a
- run: docker run --platform=linux/amd64 builder:amd64 uname -a

build-linux:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 8b095f5

Please sign in to comment.