Skip to content

Commit

Permalink
X - replace broken Docker caching with a Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
edavey committed Sep 24, 2024
1 parent a739f3e commit 14fe96c
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,13 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- id: cache-docker
uses: actions/cache@v3
- name: Cache Docker images.
uses: ScribeMD/docker-cache@0.5.0
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
key: docker-${{ runner.os }}-${{ hashFiles('docker-compose.ci.yml') }}

- 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 14fe96c

Please sign in to comment.