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(helm): app version fix, guard, and trigger added

justin66399aea0438
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 3787a8575..639c46d86 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -71,3 +71,24 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
+
+ trigger-helm-publish:
+ needs: build-and-push-image
+ if: inputs.version != ''
+ runs-on: ubuntu-24.04
+ steps:
+ - name: Trigger Helm chart publish
+ uses: actions/github-script@v8
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ script: |
+ await github.rest.actions.createWorkflowDispatch({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ workflow_id: 'helm-chart.yml',
+ ref: 'main',
+ inputs: {
+ version: '${{ inputs.version }}'
+ }
+ });
+ console.log('Triggered Helm chart publish for version ${{ inputs.version }}');
diff --git a/.github/workflows/helm-chart.yml b/.github/workflows/helm-chart.yml
index 982d02e5f..7f16385fd 100644
--- a/.github/workflows/helm-chart.yml
+++ b/.github/workflows/helm-chart.yml
@@ -107,7 +107,7 @@ jobs:
- name: Package chart
run: |
mkdir -p dist
- helm package "$CHART_PATH" --version "$CHART_VERSION" --destination dist
+ helm package "$CHART_PATH" --version "$CHART_VERSION" --app-version "$CHART_VERSION" --destination dist
- name: Log in to GHCR
env:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5e26f7e6c..6977b15a6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -22,6 +22,13 @@ jobs:
with:
fetch-depth: 0
+ - name: Enforce dispatch from main
+ run: |
+ if [ "${{ github.ref }}" != "refs/heads/main" ]; then
+ echo "::error::release.yml must be dispatched from main (current ref: ${{ github.ref }}). The Chart.yaml bump and tag push will not land on main otherwise."
+ exit 1
+ fi
+
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with: