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'
|
||||
|
||||
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:
|
||||
needs: [prephelm]
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ixsystems/catalog_validation:latest
|
||||
|
@ -28,6 +52,13 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||
- uses: actions/checkout@v2
|
||||
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
|
||||
uses: azure/setup-helm@v1
|
||||
with:
|
||||
|
@ -68,7 +99,7 @@ jobs:
|
|||
for chart in master/charts/${train}/*; do
|
||||
if [ -d "${chart}" ]; then
|
||||
cd ${chart}
|
||||
helm dependency update
|
||||
helm dependency update --skip-refresh
|
||||
cd -
|
||||
fi
|
||||
done
|
||||
|
@ -126,6 +157,7 @@ jobs:
|
|||
git push
|
||||
|
||||
helm-release:
|
||||
needs: [prephelm]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Block concurrent jobs
|
||||
|
@ -141,6 +173,14 @@ jobs:
|
|||
fetch-depth: 0
|
||||
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
|
||||
run: |
|
||||
git config user.name "TrueCharts-Bot"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: "Apps: Test & Release"
|
||||
name: "Apps: Tests"
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
@ -14,7 +14,7 @@ on:
|
|||
|
||||
jobs:
|
||||
prephelm:
|
||||
name: Get changed Apps
|
||||
name: Prepare Helm
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Install Helm
|
||||
|
@ -227,10 +227,7 @@ jobs:
|
|||
continue-after-seconds: 180
|
||||
- uses: actions/checkout@v2
|
||||
name: Checkout
|
||||
- name: Install Helm
|
||||
uses: azure/setup-helm@v1
|
||||
with:
|
||||
version: v3.5.3
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
|
@ -251,6 +248,11 @@ jobs:
|
|||
~/.cache/helm/repository
|
||||
~/.config/helm/repositories.yaml
|
||||
|
||||
- name: Install Helm
|
||||
uses: azure/setup-helm@v1
|
||||
with:
|
||||
version: v3.5.3
|
||||
|
||||
- name: Remove if release already exists
|
||||
run: |
|
||||
for train in stable incubator develop non-free deprecated
|
||||
|
|
Loading…
Reference in New Issue