From 4b9a7e05ecab5eb9558011096d98d15d16b7957a Mon Sep 17 00:00:00 2001 From: Jacques ROUSSEL Date: Mon, 23 Dec 2024 09:15:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7(helm)=20add=20a=20github=20workflo?= =?UTF-8?q?w=20to=20publish=20a=20chart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to avoid to duplicat helm chart between this repository and the deployement repository, we decide to publish an helm chart --- .github/workflows/release-helm-chart.yaml | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release-helm-chart.yaml diff --git a/.github/workflows/release-helm-chart.yaml b/.github/workflows/release-helm-chart.yaml new file mode 100644 index 00000000..3f17aacf --- /dev/null +++ b/.github/workflows/release-helm-chart.yaml @@ -0,0 +1,29 @@ +name: Release Charts + +on: + push: + branches: + - main + +jobs: + release: + # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions + # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Cleanup + run: rm -rf ./src/helm/extra + + - name: Publish Helm charts + uses: stefanprodan/helm-gh-pages@v1.7.0 + with: + charts_dir: ./src/helm/ + linting: off + token: ${{ secrets.GITHUB_TOKEN }}