Refactor Helm workflows to trigger on main branch and streamline versioning process
This commit is contained in:
@@ -88,12 +88,12 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Fetch all history for proper versioning
|
fetch-depth: 0 # Fetch all history for proper versioning
|
||||||
|
|
||||||
- name: Install Helm
|
- name: Install Helm
|
||||||
uses: azure/setup-helm@v3
|
uses: azure/setup-helm@v3
|
||||||
with:
|
with:
|
||||||
version: 'latest'
|
version: "latest"
|
||||||
|
|
||||||
- name: Update Chart dependencies
|
- name: Update Chart dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -2,14 +2,10 @@ name: Helm Chart Release
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches: [main]
|
||||||
- 'v*.*.*' # Trigger on version tags like v1.0.0
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
|
||||||
version:
|
|
||||||
description: 'Chart version to release (e.g., 1.0.1)'
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-helm:
|
release-helm:
|
||||||
@@ -23,7 +19,7 @@ jobs:
|
|||||||
- name: Install Helm
|
- name: Install Helm
|
||||||
uses: azure/setup-helm@v3
|
uses: azure/setup-helm@v3
|
||||||
with:
|
with:
|
||||||
version: 'latest'
|
version: "latest"
|
||||||
|
|
||||||
- name: Determine version
|
- name: Determine version
|
||||||
id: version
|
id: version
|
||||||
@@ -168,4 +164,4 @@ jobs:
|
|||||||
echo "helm repo add api7ee https://${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm"
|
echo "helm repo add api7ee https://${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/helm"
|
||||||
echo "helm repo update"
|
echo "helm repo update"
|
||||||
echo "helm install my-api7ee api7ee/api7ee --version ${VERSION}"
|
echo "helm install my-api7ee api7ee/api7ee --version ${VERSION}"
|
||||||
echo '```'
|
echo '```'
|
||||||
|
|||||||
Reference in New Issue
Block a user