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 <andrey.smirnov@siderolabs.com>
(cherry picked from commit 9e78fec)
  • Loading branch information
smira committed Sep 21, 2023
1 parent 2e13558 commit e9c9dc5
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 @@ -522,7 +522,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 e9c9dc5

Please sign in to comment.