Skip to content

Commit f716514

Browse files
committed
Fix CI/CD: add chart dependency repositories
1 parent ea1a4c5 commit f716514

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ jobs:
2121
- name: Set up chart-testing
2222
uses: helm/chart-testing-action@v2.6.0
2323

24+
- name: Add dependency repositories
25+
run: |
26+
for dir in $(ls -d charts/*/); do
27+
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
28+
done
29+
2430
- name: Run chart-testing (list-changed)
2531
id: list-changed
2632
run: |

.github/workflows/release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
run: |
2020
git config user.name "$GITHUB_ACTOR"
2121
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
22+
- name: Add dependency repositories
23+
run: |
24+
for dir in $(ls -d charts/*/); do
25+
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
26+
done
2227
- name: Run chart-releaser
2328
uses: helm/chart-releaser-action@v1.1.0
2429
env:

0 commit comments

Comments
 (0)