Fix gitlab registry digest information with provenance workaround

docker buildx as of v0.10.0 defaults to using SLSA Provenance for multi architecture builds.

Pushing an image built with buildx to Gitlab results in a tag with empty manifest data.

https://gitlab.com/gitlab-org/gitlab/-/issues/388865
This commit is contained in:
Zedifus 2023-05-14 19:34:38 +01:00
parent 66389b74c2
commit 4b0147e654

View File

@ -45,6 +45,7 @@ docker-build-dev:
--build-arg "BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ")"
--build-arg "BUILD_REF=${CI_COMMIT_SHA}"
--build-arg "CRAFTY_VER=${VERSION}"
--provenance false
--tag "$CI_REGISTRY_IMAGE${tag}"
--tag "arcadiatechnology/crafty-4${tag}"
--platform linux/arm64/v8,linux/amd64
@ -100,6 +101,7 @@ docker-build-prod:
--build-arg "BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ")"
--build-arg "BUILD_REF=${CI_COMMIT_SHA}"
--build-arg "CRAFTY_VER=${VERSION}"
--provenance false
--tag "$CI_REGISTRY_IMAGE:$VERSION"
--tag "$CI_REGISTRY_IMAGE:latest"
--tag "arcadiatechnology/crafty-4:$VERSION"