Skip to content

Commit

Permalink
ci: workflow for releasing helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
fredriklindberg committed Jun 28, 2021
1 parent aa507fa commit 9efa09e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: helm release
on:
workflow_run:
workflows: ["release"]
types:
- completed

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Checkout helm chart repo
uses: actions/checkout@v2
with:
repository: exposr/helm-charts
path: helm-charts
token: ${{ secrets.HELM_CHART_REPO_TOKEN }}

- name: Copy source chart
run: |
rm -fr helm-charts/charts/exposr
cp -rp helm helm-charts/charts/exposr
- name: Publish chart
run: |
cd helm-charts
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add .
git commit -m 'chore: update exposr chart'
git push

0 comments on commit 9efa09e

Please sign in to comment.