From 8f4c152b4080c662fb7242055eafb983042fcdf5 Mon Sep 17 00:00:00 2001 From: Gerald Pinder <4626052+gmpinder@users.noreply.github.com> Date: Sun, 23 Jul 2023 15:26:34 -0400 Subject: [PATCH] Fix cosign command --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a155edc..7624696 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,5 +56,5 @@ build: buildah tag $FULL_IMAGE_NAME:${TAGS} $FULL_IMAGE_NAME:${TAG} done - buildah push --all $FULL_IMAGE_NAME - - DIGEST=$(buildah images --format '{{.Digest}}' $FULL_IMAGE_NAME:$TAGS | head -n 1) + - DIGEST=($(buildah images --format '{{.Digest}}' $FULL_IMAGE_NAME:$TAGS)) - cosign sign -y --key $SIGNING_SECRET $FULL_IMAGE_NAME@$DIGEST \ No newline at end of file