Skip to content

Commit b4d9272

Browse files
author
Akshay Patidar
authored
fix: release chart workflow (#7)
Signed-off-by: Akshay Patidar <akshaypatidar1999@gmail.com>
1 parent b8a332f commit b4d9272

File tree

5 files changed

+1659
-16
lines changed

5 files changed

+1659
-16
lines changed

.github/workflows/release-chart.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,25 @@ jobs:
2222
git config user.email "release-bot@users.noreply.github.com"
2323
2424
- name: Install Helm
25-
uses: azure/setup-helm@v4
25+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
2626

2727
- name: Add dependency chart repos
2828
run: |
2929
helm repo add bitnami https://charts.bitnami.com/bitnami
3030
helm repo add minio https://charts.min.io/
3131
helm repo add percona https://percona.github.io/percona-helm-charts/
3232
33-
- name: Run chart-releaser
34-
uses: helm/chart-releaser-action@v1
35-
with:
36-
mark_as_latest: false
37-
env:
38-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
39-
CR_RELEASE_NAME_TEMPLATE: "{{ .Name }}-helm-chart-{{ .Version }}"
33+
- name: Update Chart.lock
34+
working-directory: charts/odin
35+
run: helm dependency update
36+
37+
- name: Lint chart
38+
working-directory: charts/odin
39+
run: helm lint .
40+
41+
- name: Publish helm chart
42+
working-directory: charts
43+
run: |
44+
helm package odin
45+
VERSION=$(yq -r '.version' odin/Chart.yaml)
46+
helm push odin-${VERSION}.tgz ${{ vars.HELM_REGISTRY }}/${{ vars.HELM_REPOSITORY }} --username ${{ secrets.HELM_USERNAME }} --password ${{ secrets.HELM_PASSWORD }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ replay_pid*
2525

2626
target/
2727
.idea/
28-
values.yaml
2928
.cursor/

charts/odin/Chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ version: 0.0.1
66
appVersion: 0.0.1
77
keywords:
88
- odin
9+
- percona
910
dependencies:
1011
- name: common
1112
repository: https://charts.bitnami.com/bitnami

0 commit comments

Comments
 (0)