fix some cache issues

This commit is contained in:
kjeld Schouten-Lebbing
2021-08-17 14:10:04 +02:00
parent 250b7e6376
commit 5d4590232f
2 changed files with 51 additions and 15 deletions

View File

@@ -44,6 +44,22 @@ jobs:
container:
image: ixsystems/catalog_validation:latest
steps:
- name: Cache helm repo cache
id: cache
uses: actions/cache@v2
with:
key: helmrepocache-${{ github.sha }}
path: |
~/.cache/helm/repository
~/.config/helm/repositories.yaml
- name: Cache-Error-Fix
if: steps.cache.outputs.cache-hit != 'true'
run: |
helm repo add truecharts https://truecharts.org
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: Block concurrent jobs
uses: softprops/turnstyle@v1
with:
@@ -52,13 +68,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
- uses: actions/checkout@v2
name: Checkout
- 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:
@@ -160,6 +170,23 @@ jobs:
needs: [prephelm]
runs-on: ubuntu-latest
steps:
- name: Cache helm repo cache
id: cache
uses: actions/cache@v2
with:
key: helmrepocache-${{ github.sha }}
path: |
~/.cache/helm/repository
~/.config/helm/repositories.yaml
- name: Cache-Error-Fix
if: steps.cache.outputs.cache-hit != 'true'
run: |
helm repo add truecharts https://truecharts.org
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: Block concurrent jobs
uses: softprops/turnstyle@v1
with:
@@ -173,14 +200,6 @@ jobs:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}
- name: Cache helm repo cache
uses: actions/cache@v2
with:
key: helmrepocache-${{ github.sha }}
path: |
~/.cache/helm/repository
~/.config/helm/repositories.yaml
- name: Configure Git
run: |
git config user.name "TrueCharts-Bot"

View File

@@ -89,6 +89,7 @@ jobs:
fetch-depth: 0
- name: Cache helm repo cache
id: cache
uses: actions/cache@v2
with:
key: helmrepocache-${{ github.sha }}
@@ -96,6 +97,13 @@ jobs:
~/.cache/helm/repository
~/.config/helm/repositories.yaml
- name: Cache-Error-Fix
if: steps.cache.outputs.cache-hit != 'true'
run: |
helm repo add truecharts https://truecharts.org
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: Prepare-Lint
if: ${{ matrix.app != '.gitkee' }}
id: prep-lint
@@ -223,6 +231,7 @@ jobs:
image: ixsystems/catalog_validation:latest
steps:
- name: Cache helm repo cache
id: cache
uses: actions/cache@v2
with:
key: helmrepocache-${{ github.sha }}
@@ -230,6 +239,14 @@ jobs:
~/.cache/helm/repository
~/.config/helm/repositories.yaml
- name: Cache-Error-Fix
if: steps.cache.outputs.cache-hit != 'true'
run: |
helm repo add truecharts https://truecharts.org
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: Block concurrent jobs
uses: softprops/turnstyle@v1
with: