Skip to content

Commit 74511f8

Browse files
authored
Merge pull request #1891 from Altinity/hotfix_helm_release
hotfix for helm release after failure github actions
2 parents 30bd85c + 8631cc5 commit 74511f8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/release_chart.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
types:
66
- published
77
- edited
8+
workflow_dispatch: {}
89

910
jobs:
1011
release_chart:
1112
name: Release Chart
1213
permissions:
1314
contents: write
15+
packages: write
1416
runs-on: ubuntu-latest
1517
steps:
1618
- name: Checkout
@@ -20,14 +22,15 @@ jobs:
2022

2123
- name: Install chart-releaser
2224
run: |
23-
wget https://github.com/helm/chart-releaser/releases/download/v1.4.1/chart-releaser_1.4.1_linux_amd64.tar.gz
24-
tar -zxf chart-releaser_1.4.1_linux_amd64.tar.gz cr
25+
HELM_CHART_RELEASER_VERSION=$(curl -fsSL https://github.com/helm/chart-releaser/releases/latest -H "Accept: application/json" | jq -r .tag_name)
26+
wget -qO "chart-releaser_${HELM_CHART_RELEASER_VERSION#v}_linux_$(dpkg --print-architecture).tar.gz" "https://github.com/helm/chart-releaser/releases/download/${HELM_CHART_RELEASER_VERSION}/chart-releaser_${HELM_CHART_RELEASER_VERSION#v}_linux_$(dpkg --print-architecture).tar.gz"
27+
tar -zxf "chart-releaser_${HELM_CHART_RELEASER_VERSION#v}_linux_$(dpkg --print-architecture).tar.gz"
2528
sudo install cr /usr/local/bin/
2629
rm -f cr chart-releaser_1.4.1_linux_amd64.tar.gz
2730
2831
- name: Install Helm
2932
run: |
30-
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
33+
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-4 | bash
3134
3235
- name: Login to GitHub Container Registry
3336
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,6 @@ tests/image/cache
5555
.aider*
5656
CLAUDE.md
5757
AGENTS.md
58-
.claude
58+
.claude
59+
60+
/.cr-release-packages

0 commit comments

Comments
 (0)