Skip to content

Commit

Permalink
docker pull cache
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeast committed Aug 1, 2024
1 parent 0cba10e commit d197954
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Cache Docker images
uses: actions/cache@v2
with:
path: /tmp/docker-images
key: ${{ runner.os }}-docker-images
- name: Load cached Docker images
run: |
if [ -d /tmp/docker-images ]; then
docker load < /tmp/docker-images/images.tar
fi
- name: Start regtest
env:
COMPOSE_PROFILES: ci
Expand All @@ -31,3 +41,7 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Save Docker images to cache
run: |
mkdir -p /tmp/docker-images
docker save $(docker images --format '{{.Repository}}:{{.Tag}}') > /tmp/docker-images/images.tar

0 comments on commit d197954

Please sign in to comment.