fix some cache issues
This commit is contained in:
49
.github/workflows/apps.release.yaml
vendored
49
.github/workflows/apps.release.yaml
vendored
@@ -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"
|
||||
|
||||
17
.github/workflows/apps.test.yaml
vendored
17
.github/workflows/apps.test.yaml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user