Skip to content

Commit

Permalink
feat(chart): Added cosign signature (#5609)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Hipwell <[email protected]>
  • Loading branch information
stevehipwell authored Feb 16, 2024
1 parent 185d220 commit 78dfefc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hack/release/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ publishHelmChart() {
helm push "${HELM_CHART_FILE_NAME}" "oci://${RELEASE_REPO}"
rm "${HELM_CHART_FILE_NAME}"
cd ..

cosignHelmChart "${RELEASE_REPO}" "${HELM_CHART_VERSION}"
}

cosignHelmChart() {
RELEASE_REPO=$1
HELM_CHART_VERSION=$2
digest="$(crane digest "${RELEASE_REPO}:${HELM_CHART_VERSION}")"
cosign sign --yes "${RELEASE_REPO}:${HELM_CHART_VERSION}@${digest}"
}

createNewWebsiteDirectory() {
Expand Down
1 change: 1 addition & 0 deletions hack/toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ tools() {
go install github.com/onsi/ginkgo/v2/ginkgo@latest
go install github.com/rhysd/actionlint/cmd/actionlint@latest
go install github.com/mattn/goveralls@latest
go install github.com/google/go-containerregistry/cmd/crane@latest

if ! echo "$PATH" | grep -q "${GOPATH:-undefined}/bin\|$HOME/go/bin"; then
echo "Go workspace's \"bin\" directory is not in PATH. Run 'export PATH=\"\$PATH:\${GOPATH:-\$HOME/go}/bin\"'."
Expand Down

0 comments on commit 78dfefc

Please sign in to comment.