From bd2748e25ce6891ccfb010afe8c57ee685db6dc5 Mon Sep 17 00:00:00 2001 From: siujamo Date: Mon, 25 May 2026 13:58:14 +0800 Subject: [PATCH] fix: disable provenance in docker build to fix GitLab Registry 0B display Add `--provenance=false` flag to `docker build` command. This stops Docker BuildKit from generating OCI Referrers/attestations, which are not correctly parsed by GitLab Container Registry and cause the UI to display 0B size and "missing manifest digest" errors. --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ed06175..8dc1b6b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,6 +35,7 @@ package: - JAR_FILE=$(find build/libs -name '*.jar' | head -1) - echo "Building Docker image for tag $CI_COMMIT_TAG with JAR $JAR_FILE" - docker build + --provenance=false -f Dockerfile.ci --build-arg JAR_FILE="$JAR_FILE" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"