Skip to content

Commit 50dddff

Browse files
committed
pin binfmt image
Signed-off-by: CrazyMax <[email protected]>
1 parent 9e0055f commit 50dddff

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

.github/workflows/.test-bake.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,16 @@ jobs:
395395
public.ecr.aws/q3b5f1u4/test-docker-action
396396
meta-tags: |
397397
type=raw,value=bake-ghbuilder-${{ github.run_id }}
398+
399+
bake-qemu:
400+
uses: ./.github/workflows/bake.yml
401+
permissions:
402+
contents: read
403+
id-token: write
404+
with:
405+
setup-qemu: true
406+
artifact-upload: false
407+
context: test
408+
output: local
409+
sbom: true
410+
target: hello-cross

.github/workflows/.test-build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,3 +490,16 @@ jobs:
490490
meta-images: ghcr.io/docker/github-builder-test
491491
meta-tags: |
492492
type=raw,value=build-${{ github.run_id }}
493+
494+
build-qemu:
495+
uses: ./.github/workflows/build.yml
496+
permissions:
497+
contents: read
498+
id-token: write
499+
with:
500+
setup-qemu: true
501+
artifact-upload: false
502+
file: test/hello.Dockerfile
503+
output: local
504+
platforms: linux/amd64,linux/arm64
505+
sbom: true

.github/workflows/bake.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ env:
140140
BUILDX_VERSION: "v0.30.1"
141141
BUILDKIT_IMAGE: "moby/buildkit:master@sha256:bdefeba47634c596286beabe68219708ed364c4f1a5e4e9a2e160274712a0e89" # TODO: pin to a specific version when signed gha cache feature is available
142142
SBOM_IMAGE: "docker/buildkit-syft-scanner:1.9.0"
143+
BINFMT_IMAGE: "tonistiigi/binfmt:qemu-v10.0.4-56"
143144
DOCKER_ACTIONS_TOOLKIT_MODULE: "@docker/[email protected]"
144145
COSIGN_VERSION: "v3.0.2"
145146
LOCAL_EXPORT_DIR: "/tmp/buildx-output"
@@ -351,6 +352,7 @@ jobs:
351352
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
352353
if: ${{ inputs.setup-qemu }}
353354
with:
355+
image: ${{ env.BINFMT_IMAGE }}
354356
cache-image: false
355357
-
356358
name: Expose GitHub Runtime

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ env:
147147
BUILDX_VERSION: "v0.30.1"
148148
BUILDKIT_IMAGE: "moby/buildkit:master@sha256:bdefeba47634c596286beabe68219708ed364c4f1a5e4e9a2e160274712a0e89" # TODO: pin to a specific version when signed gha cache feature is available
149149
SBOM_IMAGE: "docker/buildkit-syft-scanner:1.9.0"
150+
BINFMT_IMAGE: "tonistiigi/binfmt:qemu-v10.0.4-56"
150151
DOCKER_ACTIONS_TOOLKIT_MODULE: "@docker/[email protected]"
151152
COSIGN_VERSION: "v3.0.2"
152153
LOCAL_EXPORT_DIR: "/tmp/buildx-output"
@@ -310,6 +311,7 @@ jobs:
310311
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
311312
if: ${{ inputs.setup-qemu }}
312313
with:
314+
image: ${{ env.BINFMT_IMAGE }}
313315
cache-image: false
314316
-
315317
name: Expose GitHub Runtime

0 commit comments

Comments
 (0)