From c5139211c16ab293ec99b66b190cabe654b1b882 Mon Sep 17 00:00:00 2001 From: Marco Ebert Date: Sun, 4 Feb 2024 21:42:44 +0100 Subject: [PATCH] CI: Rework cache loading. --- .github/workflows/ci.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0cf133e9a..625a432e2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -260,11 +260,14 @@ jobs: - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - name: cache + - name: Download cache uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: name: docker.tar.gz + - name: Load cache + run: gzip --decompress --stdout docker.tar.gz | docker load + - name: fix permissions run: | sudo mkdir -p $HOME/.kube @@ -275,11 +278,6 @@ jobs: run: | 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 env: KIND_CLUSTER_NAME: kind