Skip to content

Commit c2ffa82

Browse files
CI: Pre-pull docker images to optimize caching
Also, switch to pierrezemb/gostatic:latest instead of specific hash due to satackey/action-docker-layer-caching#17
1 parent 54cc5e4 commit c2ffa82

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v1
32+
- name: Pull Docker images
33+
run: >
34+
cd tests &&
35+
docker-compose pull
3236
- name: Pull Docker layer cache
3337
uses: satackey/[email protected]
3438
- name: Run tests

tests/test-in-docker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cat >test-job.json <<'_END_'
4343
"Driver": "docker",
4444
"User": "",
4545
"Config": {
46-
"image": "pierrezemb/gostatic@sha256:e28d48e17840c5104b5133c30851ac45903b1d2f268d108c4cd0884802c9c87e",
46+
"image": "pierrezemb/gostatic:latest",
4747
"args": [
4848
"-enable-health"
4949
],

0 commit comments

Comments
 (0)