From 9efa09e949061b37c5f506e52ac075eafe197a9e Mon Sep 17 00:00:00 2001 From: Fredrik Lindberg Date: Sun, 27 Jun 2021 13:50:15 +0200 Subject: [PATCH] ci: workflow for releasing helm chart --- .github/workflows/helm.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/helm.yaml diff --git a/.github/workflows/helm.yaml b/.github/workflows/helm.yaml new file mode 100644 index 0000000..910f0f5 --- /dev/null +++ b/.github/workflows/helm.yaml @@ -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 "$GITHUB_ACTOR@users.noreply.github.com" + git add . + git commit -m 'chore: update exposr chart' + git push