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

Merge branch 'disable-provenance' into 'master'

Disable provenance when building images

Closes #104

See merge request https://gitlab.com/gitlab-org/terraform-images/-/merge_requests/194



Merged-by: default avatarTimo Furrer <tfurrer@gitlab.com>
Approved-by: default avatarTiger Watson <twatson@gitlab.com>
parents 43bc02a4 417dd8bf
No related branches found
No related tags found
No related merge requests found
...@@ -104,12 +104,18 @@ build: ...@@ -104,12 +104,18 @@ build:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY" - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
script: script:
- docker buildx create --use - 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 - docker buildx build
--platform "$PLATFORMS" --platform "$PLATFORMS"
--build-arg BASE_IMAGE=$BASE_IMAGE --build-arg BASE_IMAGE=$BASE_IMAGE
--build-arg TERRAFORM_BINARY_VERSION=$TERRAFORM_BINARY_VERSION --build-arg TERRAFORM_BINARY_VERSION=$TERRAFORM_BINARY_VERSION
--file Dockerfile --file Dockerfile
--tag "$BUILD_IMAGE_NAME" --tag "$BUILD_IMAGE_NAME"
--provenance=false
--push --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