parallel fetchtask
This commit is contained in:
@@ -222,6 +222,14 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: ixsystems/catalog_validation:latest
|
image: ixsystems/catalog_validation:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Cache helm repo cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
key: helmrepocache-${{ github.sha }}
|
||||||
|
path: |
|
||||||
|
~/.cache/helm/repository
|
||||||
|
~/.config/helm/repositories.yaml
|
||||||
|
|
||||||
- name: Block concurrent jobs
|
- name: Block concurrent jobs
|
||||||
uses: softprops/turnstyle@v1
|
uses: softprops/turnstyle@v1
|
||||||
with:
|
with:
|
||||||
@@ -241,14 +249,6 @@ jobs:
|
|||||||
repository: truecharts/catalog
|
repository: truecharts/catalog
|
||||||
path: catalog
|
path: catalog
|
||||||
|
|
||||||
- name: Cache helm repo cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
key: helmrepocache-${{ github.sha }}
|
|
||||||
path: |
|
|
||||||
~/.cache/helm/repository
|
|
||||||
~/.config/helm/repositories.yaml
|
|
||||||
|
|
||||||
- name: Install Helm
|
- name: Install Helm
|
||||||
uses: azure/setup-helm@v1
|
uses: azure/setup-helm@v1
|
||||||
with:
|
with:
|
||||||
@@ -276,16 +276,21 @@ jobs:
|
|||||||
wait
|
wait
|
||||||
- name: fetch dependencies
|
- name: fetch dependencies
|
||||||
run: |
|
run: |
|
||||||
for train in stable incubator develop non-free deprecated
|
fetchtask(){
|
||||||
do
|
if [ -d "$2/SCALE" ]; then
|
||||||
for chart in master/charts/${train}/*; do
|
|
||||||
if [ -d "${chart}" ]; then
|
if [ -d "${chart}" ]; then
|
||||||
cd ${chart}
|
cd ${chart}
|
||||||
helm dependency update --skip-refresh
|
helm dependency update --skip-refresh
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
for train in stable incubator develop non-free deprecated
|
||||||
|
do
|
||||||
|
for chart in master/charts/${train}/*; do
|
||||||
|
fetchtask "${chart}" &
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
wait
|
||||||
- name: Apply SCALE Patches
|
- name: Apply SCALE Patches
|
||||||
run: |
|
run: |
|
||||||
for train in stable incubator develop non-free deprecated
|
for train in stable incubator develop non-free deprecated
|
||||||
|
|||||||
Reference in New Issue
Block a user