Skip to content

Commit 5c7b530

Browse files
committed
Disable provenance in built images
Ref: docker/buildx#1509
1 parent d871500 commit 5c7b530

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,14 @@ jobs:
4444
run: make docker-build
4545
env:
4646
DOCKER_BUILDKIT: 1
47-
BUILDKIT_MULTI_PLATFORM: 0
47+
BUILDKIT_MULTI_PLATFORM: "false"
4848
PLATFORM: ${{ matrix.platform }}
4949
IMAGE_TAG: "ghcr.io/sudo-bot/docker-rustpython/rustpython:${{ matrix.internal-tag }}-latest"
5050
ACTION: push
51-
EXTRA_ARGS: "--cache-to=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-buildcache:${{ matrix.internal-tag }},mode=max --cache-from=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-buildcache:${{ matrix.internal-tag }}"
51+
# Disable provenance to remove the attestation from the pushed image
52+
# See: https://github.com/docker/buildx/issues/1509
53+
# It makes: ghcr.io/sudo-bot/docker-rustpython/rustpython:armv6-latest is a manifest list
54+
EXTRA_ARGS: "--provenance=false --cache-to=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-buildcache:${{ matrix.internal-tag }},mode=max --cache-from=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-buildcache:${{ matrix.internal-tag }}"
5255

5356
create-final-image:
5457
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)