fix some cache issues
This commit is contained in:
@@ -44,6 +44,22 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: ixsystems/catalog_validation:latest
|
image: ixsystems/catalog_validation:latest
|
||||||
steps:
|
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
|
- name: Block concurrent jobs
|
||||||
uses: softprops/turnstyle@v1
|
uses: softprops/turnstyle@v1
|
||||||
with:
|
with:
|
||||||
@@ -52,13 +68,7 @@ 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-${{ github.sha }}
|
|
||||||
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:
|
||||||
@@ -160,6 +170,23 @@ jobs:
|
|||||||
needs: [prephelm]
|
needs: [prephelm]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Block concurrent jobs
|
||||||
uses: softprops/turnstyle@v1
|
uses: softprops/turnstyle@v1
|
||||||
with:
|
with:
|
||||||
@@ -173,14 +200,6 @@ 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-${{ github.sha }}
|
|
||||||
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"
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Cache helm repo cache
|
- name: Cache helm repo cache
|
||||||
|
id: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: helmrepocache-${{ github.sha }}
|
key: helmrepocache-${{ github.sha }}
|
||||||
@@ -96,6 +97,13 @@ jobs:
|
|||||||
~/.cache/helm/repository
|
~/.cache/helm/repository
|
||||||
~/.config/helm/repositories.yaml
|
~/.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
|
- name: Prepare-Lint
|
||||||
if: ${{ matrix.app != '.gitkee' }}
|
if: ${{ matrix.app != '.gitkee' }}
|
||||||
id: prep-lint
|
id: prep-lint
|
||||||
@@ -223,6 +231,7 @@ jobs:
|
|||||||
image: ixsystems/catalog_validation:latest
|
image: ixsystems/catalog_validation:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Cache helm repo cache
|
- name: Cache helm repo cache
|
||||||
|
id: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: helmrepocache-${{ github.sha }}
|
key: helmrepocache-${{ github.sha }}
|
||||||
@@ -230,6 +239,14 @@ jobs:
|
|||||||
~/.cache/helm/repository
|
~/.cache/helm/repository
|
||||||
~/.config/helm/repositories.yaml
|
~/.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
|
- name: Block concurrent jobs
|
||||||
uses: softprops/turnstyle@v1
|
uses: softprops/turnstyle@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user