Skip to content

Commit 7e498fa

Browse files
committed
feat: use image signer
Use `image-signer` to sign images. Signed-off-by: Noel Georgi <git@frezbo.dev>
1 parent eccb21d commit 7e498fa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ GENERATE_VEX_PREFIX ?= ghcr.io/siderolabs/generate-vex
3232
GENERATE_VEX ?= latest
3333

3434
KRES_IMAGE ?= ghcr.io/siderolabs/kres:latest
35+
IMAGE_SIGNER_IMAGE ?= ghcr.io/siderolabs/image-signer:latest
3536
CONFORMANCE_IMAGE ?= ghcr.io/siderolabs/conform:latest
3637

3738
PKG_APPARMOR ?= $(PKGS_PREFIX)/apparmor:$(PKGS)
@@ -662,11 +663,7 @@ image-list: ## Prints a list of all images built by this Makefile with digests.
662663

663664
.PHONY: sign-images
664665
sign-images: ## Run cosign to sign all images built by this Makefile.
665-
@for image in $(shell $(MAKE) --quiet image-list REGISTRY_AND_USERNAME=$(REGISTRY_AND_USERNAME) IMAGE_TAG_IN=$(IMAGE_TAG_IN)); do \
666-
echo '==>' $$image; \
667-
cosign verify $$image --certificate-identity-regexp '@siderolabs\.com$$' --certificate-oidc-issuer https://accounts.google.com || \
668-
cosign sign --yes $$image; \
669-
done
666+
@docker run --pull=always --rm --net=host $(IMAGE_SIGNER_IMAGE) sign $(shell $(MAKE) --quiet image-list REGISTRY_AND_USERNAME=$(REGISTRY_AND_USERNAME) IMAGE_TAG_IN=$(IMAGE_TAG_IN))
670667

671668
.PHONY: reproducibility-test
672669
reproducibility-test: $(ARTIFACTS)

0 commit comments

Comments
 (0)