Skip to content

Commit

Permalink
ci: add release.yaml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shivjm committed Sep 30, 2021
1 parent f7251f7 commit 8b1f452
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# taken from https://github.com/helm/charts-repo-actions-demo/blob/main/.github/workflows/release.yaml
name: Release Charts

on:
# push:
# branches:
# - main
[push]

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.7.0

# Using GPG to sign Helm charts seems a bit dodgy to me, with warnings like this in the docs:
#
# Warning: the GnuPG v2 store your secret keyring using a new format `kbx` on the default location `~/.gnupg/pubring.kbx`. Please use the following command to convert your keyring to the legacy gpg format:
#
# $ gpg --export-secret-keys >~/.gnupg/secring.gpg
#
# I think I’ll skip it for now.

# - name: Add dependency chart repos
# run: |
# helm repo add bitnami https://charts.bitnami.com/bitnami

- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: charts
config: cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
1 change: 1 addition & 0 deletions cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sign: false

0 comments on commit 8b1f452

Please sign in to comment.