From 4b0147e65402b15295bf0faf809cb93b7682bbd9 Mon Sep 17 00:00:00 2001 From: Zedifus Date: Sun, 14 May 2023 19:34:38 +0100 Subject: [PATCH] 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 --- .gitlab/docker-build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab/docker-build.yml b/.gitlab/docker-build.yml index b7a35afa..aa578e97 100644 --- a/.gitlab/docker-build.yml +++ b/.gitlab/docker-build.yml @@ -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"