Skip to content

Commit 7a34284

Browse files
authored
Use the Docker image as a source of cache layers
https://testdriven.io/blog/faster-ci-builds-with-docker-cache/
1 parent 09a0f90 commit 7a34284

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/dockerimage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717

1818
- name: Build the Docker image
1919
run: |
20-
docker build . --tag ${{ github.repository }}
20+
docker build . \
21+
--tag ${{ github.repository }} \
22+
--cache-from macbre/nginx-brotli:latest
2123
docker images
2224
2325
- name: Run nginx -V

0 commit comments

Comments
 (0)