add cluster loop
This commit is contained in:
@@ -44,13 +44,15 @@ jobs:
|
||||
|
||||
- name: Add Repositories
|
||||
run: |
|
||||
echo ">> Adding repositories for chart dependencies ..."
|
||||
for chart_path in ${MAIN_DIR}/clusters/$cluster/helm/*; do
|
||||
helm dependency list --max-col-width 120 $chart_path 2> /dev/null \
|
||||
| tail +2 | head -n 1 \
|
||||
| tee repo_added \
|
||||
| awk '{ print "helm repo add " $1 " " $3 }' \
|
||||
| sh
|
||||
for cluster in ${CLUSTERS}; do
|
||||
echo ">> Adding repositories for chart dependencies of cluster $cluster ..."
|
||||
for chart_path in ${MAIN_DIR}/clusters/$cluster/helm/*; do
|
||||
helm dependency list --max-col-width 120 $chart_path 2> /dev/null \
|
||||
| tail +2 | head -n 1 \
|
||||
| tee -a repo_added \
|
||||
| awk '{ print "helm repo add " $1 " " $3 }' \
|
||||
| sh
|
||||
done
|
||||
done
|
||||
|
||||
echo ">> Added following repos:"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
app-template 4.4.0 https://bjw-s-labs.github.io/helm-charts/ ok
|
||||
Reference in New Issue
Block a user