Skip to content

Commit

Permalink
chore: improve image signing process
Browse files Browse the repository at this point in the history
Better cosign flow, check for existing signature.

Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
smira committed Sep 13, 2023
1 parent f00567e commit 9e78fec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,11 @@ image-list: ## Prints a list of all images built by this Makefile with digests.

.PHONY: sign-images
sign-images: ## Run cosign to sign all images built by this Makefile.
@$(MAKE) --quiet image-list | xargs -I{} sh -c 'cosign sign --yes {}'
@for image in $(shell $(MAKE) --quiet image-list REGISTRY_AND_USERNAME=$(REGISTRY_AND_USERNAME) IMAGE_TAG=$(IMAGE_TAG)); do \
echo '==>' $$image; \
cosign verify $$image --certificate-identity-regexp '@siderolabs\.com$$' --certificate-oidc-issuer https://accounts.google.com || \
cosign sign --yes $$image; \
done

.PHONY: reproducibility-test
reproducibility-test:
Expand Down

0 comments on commit 9e78fec

Please sign in to comment.