Skip to content

Commit acd2583

Browse files
committed
update workflow to add value schema json helm chart
1 parent db7e5a7 commit acd2583

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

.github/workflows/release.yaml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,36 +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
37+
- name: Generate values schema json
38+
uses: losisin/helm-values-schema-json-action@v1
39+
with:
40+
input: values.yaml
4741

4842
- name: Add dependency chart repos
4943
run: helm repo add bitnami https://charts.bitnami.com/bitnami
5044

51-
- name: Import GPG key
52-
run: |
53-
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
54-
gpg --list-secret-keys --keyid-format LONG
45+
# from https://blog.devops.dev/a-guide-to-signing-helm-charts-with-gpg-using-github-action-and-sign-images-on-artifacthub-958a23010e94
46+
#- name: Prepare GPG key #this step is for using exported keys and make your github runner
47+
# run: |
48+
# gpg_dir=.cr-gpg
49+
# mkdir "$gpg_dir"
50+
# keyring="$gpg_dir/secring.gpg"
51+
# base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
52+
# passphrase_file="$gpg_dir/passphrase"
53+
# echo "$GPG_PASSPHRASE" > "$passphrase_file"
54+
# echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
55+
# echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
56+
# env:
57+
# GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}"
58+
# GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
5559

56-
- name: Run chart-releaser
57-
uses: helm/[email protected]
58-
env:
59-
CR_GENERATE_RELEASE_NOTES: true
60-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
61-
CR_SIGN: true
62-
CR_KEYRING: "/home/runner/.gnupg/secring.gpg"
63-
CR_KEY: "${{ secrets.GPG_KEYID }}"
64-
CR_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
65-
with:
66-
charts_dir: .
60+
#- name: Run chart-releaser #this is used to generate new version of helm chart along with some file with extension .prov
61+
# uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 #v1.6.0
62+
# env:
63+
# CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
64+
# CR_KEY: "${{ secrets.CR_KEY }}"
65+
# CR_SIGN: true # set to true to sign images
6766

6867
# see https://github.com/helm/chart-releaser/issues/183
6968
- name: Login to GitHub Container Registry

0 commit comments

Comments
 (0)