Small workflow tweaking to improve speed a bit
This commit is contained in:
parent
2d5391cd08
commit
eb83177b5c
|
@ -15,7 +15,31 @@ on:
|
||||||
- '.github/cr.yaml'
|
- '.github/cr.yaml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
prephelm:
|
||||||
|
name: Prepare Helm
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Install Helm
|
||||||
|
uses: azure/setup-helm@v1
|
||||||
|
with:
|
||||||
|
version: v3.5.3
|
||||||
|
|
||||||
|
- name: Cache helm repo cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
key: helmrepocache
|
||||||
|
path: |
|
||||||
|
~/.cache/helm/repository
|
||||||
|
~/.config/helm/repositories.yaml
|
||||||
|
|
||||||
|
- name: update helm repo cache
|
||||||
|
run: |
|
||||||
|
helm repo add truecharts https://truecharts.org
|
||||||
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
|
helm repo update
|
||||||
|
|
||||||
catalog-release:
|
catalog-release:
|
||||||
|
needs: [prephelm]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ixsystems/catalog_validation:latest
|
image: ixsystems/catalog_validation:latest
|
||||||
|
@ -28,6 +52,13 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
name: Checkout
|
name: Checkout
|
||||||
|
- name: Cache helm repo cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
key: helmrepocache
|
||||||
|
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:
|
||||||
|
@ -68,7 +99,7 @@ jobs:
|
||||||
for chart in master/charts/${train}/*; do
|
for chart in master/charts/${train}/*; do
|
||||||
if [ -d "${chart}" ]; then
|
if [ -d "${chart}" ]; then
|
||||||
cd ${chart}
|
cd ${chart}
|
||||||
helm dependency update
|
helm dependency update --skip-refresh
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -126,6 +157,7 @@ jobs:
|
||||||
git push
|
git push
|
||||||
|
|
||||||
helm-release:
|
helm-release:
|
||||||
|
needs: [prephelm]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Block concurrent jobs
|
- name: Block concurrent jobs
|
||||||
|
@ -141,6 +173,14 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
|
|
||||||
|
- name: Cache helm repo cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
key: helmrepocache
|
||||||
|
path: |
|
||||||
|
~/.cache/helm/repository
|
||||||
|
~/.config/helm/repositories.yaml
|
||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
run: |
|
run: |
|
||||||
git config user.name "TrueCharts-Bot"
|
git config user.name "TrueCharts-Bot"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name: "Apps: Test & Release"
|
name: "Apps: Tests"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -14,7 +14,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prephelm:
|
prephelm:
|
||||||
name: Get changed Apps
|
name: Prepare Helm
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install Helm
|
- name: Install Helm
|
||||||
|
@ -227,10 +227,7 @@ jobs:
|
||||||
continue-after-seconds: 180
|
continue-after-seconds: 180
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
name: Checkout
|
name: Checkout
|
||||||
- name: Install Helm
|
|
||||||
uses: azure/setup-helm@v1
|
|
||||||
with:
|
|
||||||
version: v3.5.3
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -251,6 +248,11 @@ jobs:
|
||||||
~/.cache/helm/repository
|
~/.cache/helm/repository
|
||||||
~/.config/helm/repositories.yaml
|
~/.config/helm/repositories.yaml
|
||||||
|
|
||||||
|
- name: Install Helm
|
||||||
|
uses: azure/setup-helm@v1
|
||||||
|
with:
|
||||||
|
version: v3.5.3
|
||||||
|
|
||||||
- name: Remove if release already exists
|
- name: Remove if release already exists
|
||||||
run: |
|
run: |
|
||||||
for train in stable incubator develop non-free deprecated
|
for train in stable incubator develop non-free deprecated
|
||||||
|
|
Loading…
Reference in New Issue