From ab80b4aaac58e1b25fe401edf0c4d95b1616410a Mon Sep 17 00:00:00 2001 From: Kenny Leung Date: Sun, 13 Feb 2022 15:52:53 -0800 Subject: [PATCH] convert release cosigned to also generate yaml artifact. Signed-off-by: Kenny Leung --- Makefile | 5 +++-- release/cloudbuild.yaml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index daac8220c84..7963faa8a63 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,7 @@ GOLANGCI_LINT_BIN = $(GOLANGCI_LINT_DIR)/golangci-lint KO_PREFIX ?= gcr.io/projectsigstore export KO_DOCKER_REPO=$(KO_PREFIX) +COSIGNED_YAML ?= cosign-$(GIT_TAG).yaml .PHONY: all lint test clean cosign cross all: cosign @@ -135,9 +136,9 @@ ko: # cosigned LDFLAGS="$(LDFLAGS)" GIT_HASH=$(GIT_HASH) GIT_VERSION=$(GIT_VERSION) \ - KO_DOCKER_REPO=${KO_PREFIX}/cosigned ko publish --bare \ + KO_DOCKER_REPO=${KO_PREFIX}/cosigned ko resolve --bare \ --platform=all --tags $(GIT_VERSION) --tags $(GIT_HASH) \ - github.com/sigstore/cosign/cmd/cosign/webhook + --filename config/ > $(COSIGNED_YAML) # sget LDFLAGS="$(LDFLAGS)" GIT_HASH=$(GIT_HASH) GIT_VERSION=$(GIT_VERSION) \ diff --git a/release/cloudbuild.yaml b/release/cloudbuild.yaml index 0ed983994ef..1e325d55eb6 100644 --- a/release/cloudbuild.yaml +++ b/release/cloudbuild.yaml @@ -98,6 +98,7 @@ artifacts: paths: - "go/src/sigstore/cosign/dist/*" - "go/src/sigstore/cosign/release/release-cosign.pub" + - "go/src/sigstore/cosign/cosign*.yaml options: machineType: E2_HIGHCPU_8