From 1a9e060f1e31802329cf3aef57e1fc4432fd0a09 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 26 Apr 2023 18:55:32 +0100 Subject: [PATCH] ci(release/chart): add chart-releaser to release step --- .cr.yaml | 2 ++ .github/workflows/ci.yml | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .cr.yaml diff --git a/.cr.yaml b/.cr.yaml new file mode 100644 index 0000000..59badc4 --- /dev/null +++ b/.cr.yaml @@ -0,0 +1,2 @@ +--- +release-name-template: "v{{ .Version }}" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd8c2fb..9ae4a76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,12 @@ jobs: with: fetch-depth: 0 - run: git fetch --force --tags + - name: Configure Git + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + - name: Install Helm + uses: azure/setup-helm@v3 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - uses: docker/setup-buildx-action@v2 @@ -78,3 +84,12 @@ jobs: REGISTRY: ghcr.io IMAGE: ${{ github.repository }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Package chart + run: helm package ./chart -d .cr-release-packages + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1 + with: + config: .cr.yaml + skip_packaging: true + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"