diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 71bd49a..f866362 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -16,7 +16,8 @@ on: permissions: packages: write - contents: read + contents: write + id-token: write env: TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} @@ -103,4 +104,24 @@ jobs: ghcr.io/${{ github.repository }}:${{ env.TAG_NAME }} file: tools/docker/Dockerfile.ubuntu-prod cache-from: type=registry,ref=${{ github.repository }}:latest - cache-to: type=inline \ No newline at end of file + cache-to: type=inline + + - name: Configure Git + if: env.IS_PRERELEASE != 'true' + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Update helm chart + if: env.IS_PRERELEASE != 'true' + run: | + sed -Ei \ + -e 's/^(version\:) .*/\1 '${{ env.TAG_NAME }}'/g' \ + -e 's/^(appVersion\:) .*/\1 "'${{ env.TAG_NAME }}'"/g' \ + contrib/charts/dragonfly/Chart.yaml + + git commit \ + -m 'chore(helm-chart): update to ${{ env.TAG_NAME }}' \ + contrib/charts/dragonfly/Chart.yaml + + git push