From 1a329d83aace08b71b336213dbbf9132baa4c441 Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 20 Feb 2023 18:11:56 +0100 Subject: [PATCH 1/2] Add Helm Chart Releaser workflow Signed-off-by: Simon L --- .github/workflows/helm-release.yml | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/helm-release.yml diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml new file mode 100644 index 00000000..a3aa4f63 --- /dev/null +++ b/.github/workflows/helm-release.yml @@ -0,0 +1,48 @@ + +name: Helm Chart Releaser + +on: + push: + branches: + - main + paths: + - 'helm-chart/**' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Turnstyle + uses: softprops/turnstyle@v1 + with: + continue-after-seconds: 180 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Fetch history + run: git fetch --prune --unshallow + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + # See https://github.com/helm/chart-releaser-action/issues/6 + - name: Set up Helm + uses: azure/setup-helm@v3.1 + with: + version: v3.6.3 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.4.1 + with: + charts_repo_url: https://nextcloud.github.io/all-in-one + charts_dir: helm-chart + mark_as_latest: false + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}" + CR_SKIP_EXISTING: true From 62afa918f0f289db72b268a18a05efb10b97a680 Mon Sep 17 00:00:00 2001 From: Simon L Date: Fri, 24 Mar 2023 12:01:35 +0100 Subject: [PATCH 2/2] switch chart-release-action to main Signed-off-by: Simon L --- .github/workflows/helm-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index a3aa4f63..ac7a9ea9 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -37,7 +37,8 @@ jobs: version: v3.6.3 - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.4.1 + # TODO: switch back @main to a specific version like @v1.5.1 or higher + uses: helm/chart-releaser-action@main with: charts_repo_url: https://nextcloud.github.io/all-in-one charts_dir: helm-chart