File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ GENERATE_VEX_PREFIX ?= ghcr.io/siderolabs/generate-vex
3232GENERATE_VEX ?= latest
3333
3434KRES_IMAGE ?= ghcr.io/siderolabs/kres:latest
35- IMAGE_SIGNER_IMAGE ?= ghcr.io/siderolabs/image-signer:latest
3635CONFORMANCE_IMAGE ?= ghcr.io/siderolabs/conform:latest
36+ IMAGE_SIGNER_RELEASE ?= v0.1.1
3737
3838PKG_APPARMOR ?= $(PKGS_PREFIX ) /apparmor:$(PKGS )
3939PKG_CA_CERTIFICATES ?= $(PKGS_PREFIX ) /ca-certificates:$(PKGS )
@@ -718,9 +718,14 @@ clean: ## Cleans up all artifacts.
718718image-list : # # Prints a list of all images built by this Makefile with digests.
719719 @echo -n installer installer-base talos imager talosctl talosctl-all | xargs -d ' ' -I{} sh -c ' echo $(REGISTRY_AND_USERNAME)/{}:$(IMAGE_TAG_IN)' | xargs -I{} sh -c ' echo {}@$$(crane digest {})'
720720
721+ $(ARTIFACTS ) /image-signer : $(ARTIFACTS ) # # Downloads image-signer binary
722+ @curl -sSL https://github.com/siderolabs/go-tools/releases/download/$(IMAGE_SIGNER_RELEASE ) /image-signer-$(OPERATING_SYSTEM ) -$(ARCH ) -o $(ARTIFACTS ) /image-signer
723+ @chmod +x $(ARTIFACTS ) /image-signer
724+
725+
721726.PHONY : sign-images
722- sign-images : # # Run cosign to sign all images built by this Makefile.
723- @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 ) )
727+ sign-images : $( ARTIFACTS ) /image-signer # # Run cosign to sign all images built by this Makefile.
728+ @$( ARTIFACTS ) /image-signer sign $(shell $(MAKE ) --quiet image-list REGISTRY_AND_USERNAME=$(REGISTRY_AND_USERNAME ) IMAGE_TAG_IN=$(IMAGE_TAG_IN ) )
724729
725730.PHONY : reproducibility-test
726731reproducibility-test : $(ARTIFACTS )
You can’t perform that action at this time.
0 commit comments