Skip to content

Commit

Permalink
Remove docker caching
Browse files Browse the repository at this point in the history
These steps take a very long time (~7 minutes) and don't bring any benefit that I can see.
  • Loading branch information
jdudley1123 committed Sep 25, 2024
1 parent f537468 commit 1f78864
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1f78864

Please sign in to comment.