From 559287cef5f4228e90cf96e8d27c56c51adb8fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20B=C3=A4hler?= Date: Tue, 27 Feb 2024 14:05:39 +0100 Subject: [PATCH] ci(release): use same tag for helm release (#994) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Oliver Bähler --- .github/workflows/helm-publish.yml | 5 ++++- .goreleaser.yml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/helm-publish.yml b/.github/workflows/helm-publish.yml index 58fc8321..1a0884c0 100644 --- a/.github/workflows/helm-publish.yml +++ b/.github/workflows/helm-publish.yml @@ -2,7 +2,8 @@ name: Publish charts permissions: read-all on: push: - tags: [ "helm-v*" ] + tags: + - 'v*' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -27,6 +28,7 @@ jobs: token: "${{ secrets.HELM_CHARTS_PUSH_TOKEN }}" linting: off chart_version: ${{ steps.extract_version.outputs.version }} + app_version: ${{ steps.extract_version.outputs.version }} charts_dir: charts charts_url: https://${{ github.repository_owner }}.github.io/charts owner: ${{ github.repository_owner }} @@ -58,6 +60,7 @@ jobs: repository: ${{ github.repository_owner }}/charts name: "capsule" version: ${{ steps.extract_version.outputs.version }} + app-version: ${{ steps.extract_version.outputs.version }} registry-username: ${{ github.actor }} registry-password: ${{ secrets.GITHUB_TOKEN }} update-dependencies: 'true' # Defaults to false diff --git a/.goreleaser.yml b/.goreleaser.yml index 147f4ac1..c597bf78 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -38,6 +38,9 @@ release: **Docker Images** - `ghcr.io/projectcapsule/{{ .ProjectName }}:{{ .Tag }}` - `ghcr.io/projectcapsule/{{ .ProjectName }}:latest` + + **Helm Chart** + View this release on [Artifact Hub](https://artifacthub.io/packages/helm/projectcapsule/capsule/{{ .Tag | trimSuffix "v" }}) checksum: name_template: 'checksums.txt' changelog: