Skip to content

Commit

Permalink
convert release cosigned to also generate yaml artifact. (#1453)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenny Leung <[email protected]>
k4leung4 authored Feb 15, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f005e25 commit 6a34942
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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) \
1 change: 1 addition & 0 deletions release/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6a34942

Please sign in to comment.