Skip to content

Commit

Permalink
feat: pin helm version and repo list
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyannn committed Jan 6, 2024
1 parent 4b0c4c4 commit de7825a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/chart-releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ jobs:
version: v3.11.1

- name: Add missing repositories
# On second thought, let's add the repo manually
# https://github.com/helm/helm/issues/9903#issue-935152749
# https://github.com/helm/helm/issues/8036#issuecomment-1126959239
run: |
if [ -f "./Chart.lock" ]; then
yq --indent 0 '.dependencies | map(["helm", "repo", "add", .name, .repository] | join(" ")) | .[]' "./Chart.lock" | sh --
fi
helm repo add https://charts.bitnami.com/bitnami
- name: Run chart-releaser
uses: helm/[email protected]
with:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test-chart-releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ jobs:
- name: Install Helm
uses: azure/setup-helm@v3
with:
with:
version: v3.11.1

- name: Add missing repositories
# On second thought, let's add the repo manually
# https://github.com/helm/helm/issues/9903#issue-935152749
# https://github.com/helm/helm/issues/8036#issuecomment-1126959239
run: |
if [ -f "./Chart.lock" ]; then
yq --indent 0 '.dependencies | map(["helm", "repo", "add", .name, .repository] | join(" ")) | .[]' "./Chart.lock" | sh --
fi
helm repo add https://charts.bitnami.com/bitnami

0 comments on commit de7825a

Please sign in to comment.