add 'lint and test charts' badge (#31) #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Charts | |
on: | |
push: | |
branches: | |
- main | |
env: | |
HELM_VERSION: 3.15.3 | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Set up Helm | |
uses: azure/setup-helm@v4 | |
with: | |
version: "v${{ env.HELM_VERSION }}" | |
- name: Import GPG key | |
run: | | |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --dearmor --output keyring.gpg | |
echo "${{ secrets.GPG_PASSPHRASE }}" > gpg_passphrase_file | |
- name: Add dependency chart repos | |
run: | | |
helm repo add jdstone https://charts.jdstone.dev | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
with: | |
charts_dir: charts | |
config: cr.yaml | |
env: | |
CR_PASSPHRASE_FILE: gpg_passphrase_file | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |