1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

Fixing release pipeline for boringssl (#1763)

Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com>
This commit is contained in:
Gustavo Fernandes de Carvalho 2022-11-29 19:50:11 -03:00 committed by GitHub
parent 0cb799b5cf
commit 8492c28e77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -236,12 +236,12 @@ SOURCE_TAG ?= $(VERSION)$(TAG_SUFFIX)
docker.promote: ## Promote the docker image to the registry
@$(INFO) promoting $(SOURCE_TAG) to $(RELEASE_TAG)
docker manifest inspect $(IMAGE_NAME):$(SOURCE_TAG) > .tagmanifest
for digest in $$(jq -r '.manifests[].digest' < .tagmanifest); do \
docker manifest inspect --verbose $(IMAGE_NAME):$(SOURCE_TAG) > .tagmanifest
for digest in $$(jq -r 'if type=="array" then .[].Descriptor.digest else .Descriptor.digest end' < .tagmanifest); do \
docker pull $(IMAGE_NAME)@$$digest; \
done
docker manifest create $(IMAGE_NAME):$(RELEASE_TAG) \
$$(jq -j '"--amend $(IMAGE_NAME)@" + .manifests[].digest + " "' < .tagmanifest)
$$(jq -j '"--amend $(IMAGE_NAME)@" + if type=="array" then .[].Descriptor.digest else .Descriptor.digest end + " "' < .tagmanifest)
docker manifest push $(IMAGE_NAME):$(RELEASE_TAG)
@$(OK) docker push $(RELEASE_TAG) \