Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: disable default provenance attestation #1152

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,15 @@ jobs:
docker run --privileged --rm tonistiigi/binfmt --install linux/amd64,linux/arm64
docker buildx create --name builder --use

# Disable default provenance attestation for Buildx
# https://docs.docker.com/build/building/variables/#buildx_no_default_attestations
# https://docs.docker.com/build/release-notes/#0100
# Keeps using docker
# "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json"
# instead of moving to oci, which may cause compatibility issues, for example
# "mediaType": "application/vnd.oci.image.index.v1+json"
export BUILDX_NO_DEFAULT_ATTESTATIONS=1

docker login -u "$DOCKERHUB_USERNAME" --password "$DOCKERHUB_PASS"
docker buildx bake -f ./docker-compose.yml --progress plain --set *.platform=linux/arm64,linux/amd64 --push << parameters.target >>

Expand Down