Skip to content

Commit c7e6b77

Browse files
committed
update workflow
1 parent 5b40502 commit c7e6b77

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/release.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,35 @@ jobs:
3434
with:
3535
version: "${{ env.helm-version }}"
3636

37+
- name: Install Helm schema-gen plugin
38+
run: helm plugin install https://github.com/karuppiah7890/helm-schema-gen
39+
40+
- name: Generate values schema
41+
run: |
42+
for dir in */; do
43+
if [ -f "${dir}values.yaml" ]; then
44+
helm schema-gen "${dir}values.yaml" > "${dir}values.schema.json"
45+
fi
46+
done
47+
3748
- name: Add dependency chart repos
3849
run: helm repo add bitnami https://charts.bitnami.com/bitnami
3950

51+
- name: Import GPG key
52+
uses: crazy-max/ghaction-import-gpg@v6
53+
with:
54+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
55+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
56+
4057
- name: Run chart-releaser
4158
uses: helm/[email protected]
4259
env:
4360
CR_GENERATE_RELEASE_NOTES: true
4461
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
62+
CR_SIGN: true
63+
CR_KEYRING: "/home/runner/.gnupg/secring.gpg"
64+
CR_KEY: "${{ secrets.GPG_KEYID }}"
65+
CR_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
4566
with:
4667
charts_dir: .
4768

0 commit comments

Comments
 (0)