From 1f78864444f22c4ae4372a7a584fda1e55dba88f Mon Sep 17 00:00:00 2001 From: "joseph@dxw.com" Date: Wed, 25 Sep 2024 15:29:52 +0100 Subject: [PATCH] Remove docker caching These steps take a very long time (~7 minutes) and don't bring any benefit that I can see. --- .github/workflows/continuous-integration.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 9984bd0a..3e5a0a40 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -18,26 +18,8 @@ jobs: - name: Check out code uses: actions/checkout@v4 - - id: cache-docker - uses: actions/cache@v3 - with: - path: /tmp/docker-save - key: - docker-save-${{ hashFiles('Dockerfile', 'Gemfile.lock', - 'package-lock.json') }} - - - if: steps.cache-docker.outputs.cache-hit == 'true' - name: Load cached Docker image - run: docker load -i /tmp/docker-save/snapshot.tar || true - - name: Build run: script/ci/cibuild - name: Test run: script/ci/test - - - if: always() && steps.cache-docker.outputs.cache-hit != 'true' - name: Prepare Docker cache - run: - mkdir -p /tmp/docker-save && docker save app_test:latest -o - /tmp/docker-save/snapshot.tar && ls -lh /tmp/docker-save