Skip to content

Commit db3a1c1

Browse files
committed
Automate version tag naming in chart
1 parent bda76a7 commit db3a1c1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/k8s-ssh-bastion-chart.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
- name: Install Helm
2323
uses: azure/[email protected]
2424

25+
- name: Set versions
26+
run: sed 's/<VERSION>/'${VERSION}'/' charts/k8s-ssh-bastion/Chart.yam
27+
env:
28+
VERSION: ${{ github.ref_name }}
29+
2530
- name: Chart | Push
2631
uses: appany/[email protected]
2732
with:
@@ -30,5 +35,3 @@ jobs:
3035
registry: ghcr.io
3136
registry_username: ${{ github.actor }}
3237
registry_password: ${{ secrets.GITHUB_TOKEN}}
33-
tag: ${{ github.ref_name }}
34-
app_version: ${{ github.ref_name }}

charts/k8s-ssh-bastion/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
2-
appVersion: 0.5.0
2+
appVersion: <VERSION>
33
description: A Helm chart for k8s bastion
44
name: k8s-ssh-bastion
5-
version: 0.5.5
5+
version: <VERSION>

0 commit comments

Comments
 (0)