From ba99a4d9cee09ff190b796c315ea2261e54e327f Mon Sep 17 00:00:00 2001 From: Mario Valderrama Date: Fri, 31 May 2024 17:38:57 +0200 Subject: [PATCH] Test signing --- .github/workflows/chart-release.yml | 3 +++ charts/ionoscloud-blockstorage-csi-driver/Chart.yaml | 2 +- charts/ionoscloud-blockstorage-csi-driver/README.md | 2 +- hack/publish-chart.sh | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/chart-release.yml b/.github/workflows/chart-release.yml index fe14821..df28739 100644 --- a/.github/workflows/chart-release.yml +++ b/.github/workflows/chart-release.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - sign-chart paths: - 'charts/**/Chart.yaml' pull_request: @@ -52,6 +53,8 @@ jobs: - name: Publish chart to GitHub Container Registry if: github.event_name != 'pull_request' run: ./hack/publish-chart.sh + env: + TRACE: "1" - name: Publish chart to GitHub Container Registry (dry-run) if: github.event_name == 'pull_request' diff --git a/charts/ionoscloud-blockstorage-csi-driver/Chart.yaml b/charts/ionoscloud-blockstorage-csi-driver/Chart.yaml index 918afa2..c44a8f4 100644 --- a/charts/ionoscloud-blockstorage-csi-driver/Chart.yaml +++ b/charts/ionoscloud-blockstorage-csi-driver/Chart.yaml @@ -6,7 +6,7 @@ type: application keywords: - csi - ionos-cloud -version: 0.1.0 +version: 0.1.0-sign.1 appVersion: "v1.7.0-rc.0" kubeVersion: ">=1.20.0-0" home: https://github.com/ionos-cloud/ionoscloud-blockstorage-csi-driver diff --git a/charts/ionoscloud-blockstorage-csi-driver/README.md b/charts/ionoscloud-blockstorage-csi-driver/README.md index 8f771bf..db7928b 100644 --- a/charts/ionoscloud-blockstorage-csi-driver/README.md +++ b/charts/ionoscloud-blockstorage-csi-driver/README.md @@ -1,6 +1,6 @@ # ionoscloud-blockstorage-csi-driver -![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.7.0-rc.0](https://img.shields.io/badge/AppVersion-v1.7.0--rc.0-informational?style=flat-square) +![Version: 0.1.0-sign.1](https://img.shields.io/badge/Version-0.1.0--sign.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.7.0-rc.0](https://img.shields.io/badge/AppVersion-v1.7.0--rc.0-informational?style=flat-square) IONOS Cloud Container Storage Interface (CSI) driver. diff --git a/hack/publish-chart.sh b/hack/publish-chart.sh index 7f00345..3c31815 100755 --- a/hack/publish-chart.sh +++ b/hack/publish-chart.sh @@ -19,7 +19,7 @@ if helm show chart "${OCI_HELM_CHART_REPO}/${CHART_NAME}" --version "${CHART_VER exit fi -if [[ -n ${CHART_SIGN_KEY_ID-} ]] && [[ -n ${CHART_SIGN_KEYRING-} ]]; then +if [[ -n ${CHART_SIGN_KEY_ID-} ]] && [[ -f ${CHART_SIGN_KEYRING-} ]]; then helm package --sign --key "${CHART_SIGN_KEY_ID}" --keyring "${CHART_SIGN_KEYRING}" "charts/${CHART_NAME}" else echo "Warning: Packaging chart without provenance information"