CI: Rework cache loading.
This commit is contained in:
parent
f763b4d395
commit
8d0354f083
1 changed files with 4 additions and 6 deletions
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
|
@ -260,11 +260,14 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: cache
|
- name: Download cache
|
||||||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
||||||
with:
|
with:
|
||||||
name: docker.tar.gz
|
name: docker.tar.gz
|
||||||
|
|
||||||
|
- name: Load cache
|
||||||
|
run: gzip --decompress --stdout docker.tar.gz | docker load
|
||||||
|
|
||||||
- name: fix permissions
|
- name: fix permissions
|
||||||
run: |
|
run: |
|
||||||
sudo mkdir -p $HOME/.kube
|
sudo mkdir -p $HOME/.kube
|
||||||
|
@ -275,11 +278,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
kind create cluster --image=kindest/node:${{ matrix.k8s }}
|
kind create cluster --image=kindest/node:${{ matrix.k8s }}
|
||||||
|
|
||||||
- name: Load images from cache
|
|
||||||
run: |
|
|
||||||
echo "loading docker images..."
|
|
||||||
gzip -dc docker.tar.gz | docker load
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
env:
|
env:
|
||||||
KIND_CLUSTER_NAME: kind
|
KIND_CLUSTER_NAME: kind
|
||||||
|
|
Loading…
Reference in a new issue