mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
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:
parent
66389b74c2
commit
4b0147e654
@ -45,6 +45,7 @@ docker-build-dev:
|
|||||||
--build-arg "BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ")"
|
--build-arg "BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ")"
|
||||||
--build-arg "BUILD_REF=${CI_COMMIT_SHA}"
|
--build-arg "BUILD_REF=${CI_COMMIT_SHA}"
|
||||||
--build-arg "CRAFTY_VER=${VERSION}"
|
--build-arg "CRAFTY_VER=${VERSION}"
|
||||||
|
--provenance false
|
||||||
--tag "$CI_REGISTRY_IMAGE${tag}"
|
--tag "$CI_REGISTRY_IMAGE${tag}"
|
||||||
--tag "arcadiatechnology/crafty-4${tag}"
|
--tag "arcadiatechnology/crafty-4${tag}"
|
||||||
--platform linux/arm64/v8,linux/amd64
|
--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_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ")"
|
||||||
--build-arg "BUILD_REF=${CI_COMMIT_SHA}"
|
--build-arg "BUILD_REF=${CI_COMMIT_SHA}"
|
||||||
--build-arg "CRAFTY_VER=${VERSION}"
|
--build-arg "CRAFTY_VER=${VERSION}"
|
||||||
|
--provenance false
|
||||||
--tag "$CI_REGISTRY_IMAGE:$VERSION"
|
--tag "$CI_REGISTRY_IMAGE:$VERSION"
|
||||||
--tag "$CI_REGISTRY_IMAGE:latest"
|
--tag "$CI_REGISTRY_IMAGE:latest"
|
||||||
--tag "arcadiatechnology/crafty-4:$VERSION"
|
--tag "arcadiatechnology/crafty-4:$VERSION"
|
||||||
|
Loading…
Reference in New Issue
Block a user