From a2a0352573ff499a4f74715d37aafd395a9f9aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=E1=B4=87=CA=80=C9=B4=E1=B4=85=20S=E1=B4=84=CA=9C?= =?UTF-8?q?=E1=B4=8F=CA=80=C9=A2=E1=B4=87=CA=80s?= Date: Tue, 26 Jul 2022 16:05:01 +0200 Subject: [PATCH] ci: Add initial CI --- .github/workflows/charts-release.yaml | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/charts-release.yaml diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml new file mode 100644 index 00000000..f93249ce --- /dev/null +++ b/.github/workflows/charts-release.yaml @@ -0,0 +1,40 @@ +name: "Charts: Release" + +concurrency: helm-release + +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "charts/**" + +jobs: + release-charts: + runs-on: ubuntu-22.04 + steps: + - name: Get k8s-at-home token + id: get-app-token + uses: getsentry/action-github-app-token@v1 + with: + app_id: ${{ secrets.BJWS_APP_ID }} + private_key: ${{ secrets.BJWS_APP_PRIVATE_KEY }} + + - name: Checkout + uses: actions/checkout@v3 + with: + token: ${{ steps.get-app-token.outputs.token }} + + - name: Configure Git + run: | + git config user.name "bjw-s-bot[bot]" + git config user.email "bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>" + + - name: Publish Helm charts + uses: stefanprodan/helm-gh-pages@v1.5.0 + with: + token: ${{ steps.get-app-token.outputs.token }} + charts_dir: charts + target_dir: charts + index_dir: .