Skip to content

Commit

Permalink
Test signing
Browse files Browse the repository at this point in the history
  • Loading branch information
avorima committed May 31, 2024
1 parent a4c7851 commit ba99a4d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/chart-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- sign-chart
paths:
- 'charts/**/Chart.yaml'
pull_request:
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion charts/ionoscloud-blockstorage-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion charts/ionoscloud-blockstorage-csi-driver/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion hack/publish-chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ba99a4d

Please sign in to comment.