parallel fetchtask

This commit is contained in:
kjeld Schouten-Lebbing 2021-08-17 14:04:31 +02:00
parent a9f45fcef3
commit 250b7e6376
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
1 changed files with 16 additions and 11 deletions

View File

@ -222,6 +222,14 @@ jobs:
container:
image: ixsystems/catalog_validation:latest
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
uses: softprops/turnstyle@v1
with:
@ -241,14 +249,6 @@ jobs:
repository: truecharts/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
uses: azure/setup-helm@v1
with:
@ -276,16 +276,21 @@ jobs:
wait
- name: fetch dependencies
run: |
for train in stable incubator develop non-free deprecated
do
for chart in master/charts/${train}/*; do
fetchtask(){
if [ -d "$2/SCALE" ]; then
if [ -d "${chart}" ]; then
cd ${chart}
helm dependency update --skip-refresh
cd -
fi
}
for train in stable incubator develop non-free deprecated
do
for chart in master/charts/${train}/*; do
fetchtask "${chart}" &
done
done
wait
- name: Apply SCALE Patches
run: |
for train in stable incubator develop non-free deprecated