Skip to content
Snippets Groups Projects
Unverified Commit 417dd8bf authored by Timo Furrer's avatar Timo Furrer
Browse files

feat: disable provenance when building images

`buildx` introduced SLSA provenance attestation which breaks
our images in the registry and for older clients.
Thus, we disable it for now.
You can see the change in the `buildx` changelog of buildx.

Closes https://gitlab.com/gitlab-org/terraform-images/-/issues/104
parent 43bc02a4
No related branches found
No related tags found
No related merge requests found
......@@ -104,12 +104,18 @@ build:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script:
- docker buildx create --use
# NOTE: we disable provenance for now,
# because it causes troubles with the registry and older clients.
# See
# - https://gitlab.com/gitlab-org/terraform-images/-/issues/104
# - https://gitlab.com/gitlab-org/terraform-images/-/merge_requests/184#note_1328485943
- docker buildx build
--platform "$PLATFORMS"
--build-arg BASE_IMAGE=$BASE_IMAGE
--build-arg TERRAFORM_BINARY_VERSION=$TERRAFORM_BINARY_VERSION
--file Dockerfile
--tag "$BUILD_IMAGE_NAME"
--provenance=false
--push
.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment