Skip to content

Commit

Permalink
CLOUDP-240887: Fix CI signatures
Browse files Browse the repository at this point in the history
Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
  • Loading branch information
josvazg committed Apr 3, 2024
1 parent e81c276 commit dd62852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ sign: ## Sign an AKO multi-architecture image
IMG=$(IMG) SIGNATURE_REPO=$(SIGNATURE_REPO) ./scripts/sign-multiarch.sh

cosign:
@which cosign || go install github.com/sigstore/cosign/cmd/cosign@latest
@which cosign || go install github.com/sigstore/cosign/v2/cmd/cosign@latest

./ako.pem:
curl $(AKO_SIGN_PUBKEY) > $@
Expand Down
2 changes: 1 addition & 1 deletion scripts/sign-multiarch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ action=${1:-sign}
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

docker pull "${img}"
MULTIARCH_IMG_SHA=$(docker inspect "${img}" |jq -rc '.[0].Id')
MULTIARCH_IMG_SHA=$(docker inspect --format='{{index .RepoDigests 0}}' "${img}" |awk -F@ '{print $2}')
IMG_PLATFORMS_SHAS=$(docker manifest inspect "${img}" | \
jq -rc '.manifests[] | select(.platform.os != "unknown" and .platform.architecture != "unknown") | .digest')

Expand Down

0 comments on commit dd62852

Please sign in to comment.