Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(charts/ci): Adding dynamic versioning in helm ci

justinb768d3d0dcac
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7a9f83226..f24e5f589 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
- description: 'Version to release (leave empty for automatic versioning)'
+ description: "Version to release (leave empty for automatic versioning)"
required: false
type: string
@@ -66,6 +66,11 @@ jobs:
run: |
bun x npm version ${{ steps.new_version.outputs.version }} --no-git-tag-version
+ - name: Update Chart.yaml appVersion and chart version
+ run: |
+ sed -i "s/^version: .*/version: ${{ steps.new_version.outputs.version }}/" charts/kaneo/Chart.yaml
+ sed -i 's/^appVersion: ".*"/appVersion: "${{ steps.new_version.outputs.version }}"/' charts/kaneo/Chart.yaml
+
- name: Generate changelog
run: |
bunx conventional-changelog -p angular -i CHANGELOG.md -s --release-count 1
@@ -74,7 +79,7 @@ jobs:
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- git add CHANGELOG.md package.json
+ git add CHANGELOG.md package.json charts/kaneo/Chart.yaml
git commit -m "chore(release): v${{ steps.new_version.outputs.version }}"
git tag "v${{ steps.new_version.outputs.version }}"
@@ -106,4 +111,4 @@ jobs:
latest: 'true'
}
});
- console.log('Triggered Docker build for version ${{ steps.new_version.outputs.version }}');
\ No newline at end of file
+ console.log('Triggered Docker build for version ${{ steps.new_version.outputs.version }}');