Skip to content

Commit c06874c

Browse files
committed
chore: add make targets to automate image signing
This automates image signing process after a release. Signed-off-by: Andrey Smirnov <[email protected]>
1 parent ac58e68 commit c06874c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ extensions-metadata: $(ARTIFACTS)/bldr
9090
@$(foreach target,$(TARGETS),echo $(REGISTRY)/$(USERNAME)/$(target):$(shell $(ARTIFACTS)/bldr eval --target $(target) --build-arg TAG=$(TAG) '{{.VERSION}}' 2>/dev/null) >> _out/extensions-metadata;)
9191
@$(foreach target,$(NONFREE_TARGETS),echo $(REGISTRY)/$(USERNAME)/$(target):$(shell $(ARTIFACTS)/bldr eval --target $(target) --build-arg TAG=$(TAG) '{{.VERSION}}' 2>/dev/null) >> _out/extensions-metadata;)
9292

93+
image-list: extensions-metadata ## Prints a list of all images built by this Makefile with digests.
94+
@cat _out/extensions-metadata | xargs -I{} sh -c 'echo {}@$$(crane digest {})'
95+
96+
sign-images: ## Run cosign to sign all images built by this Makefile.
97+
@$(MAKE) --quiet image-list | xargs -I{} sh -c 'cosign sign --yes {}'
98+
9399
.PHONY: deps.png
94100
deps.png: $(ARTIFACTS)/bldr
95101
$(ARTIFACTS)/bldr graph | dot -Tpng > deps.png

0 commit comments

Comments
 (0)