Skip to content

Commit f11c9c7

Browse files
authored
Merge pull request #182 from mgxd/ci/clear-cache
CI: Reset docker layer caching
2 parents 901ae72 + 9cc50bd commit f11c9c7

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

.github/workflows/testing.yml

+25-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Build & run notebooks
22

33
on:
44
push:
@@ -27,33 +27,50 @@ jobs:
2727
# In this step, this action saves a list of existing images,
2828
# the cache is created without them in the post run.
2929
# It also restores the cache if it exists.
30-
- uses: satackey/action-docker-layer-caching@v0.0.7
30+
- uses: satackey/action-docker-layer-caching@v0.0.11
31+
with:
32+
key: tutorial-docker-cache-{hash}
33+
restore-keys: |
34+
tutorial-docker-cache-
35+
layer-tutorial-docker-cache-
3136
- name: build the image
3237
run: docker build . --file Dockerfile -t nipype_tutorial:latest
3338

3439
test_1:
3540
needs: build
3641
runs-on: ubuntu-latest
3742
steps:
38-
- uses: actions/checkout@v2
39-
- uses: satackey/action-docker-layer-caching@v0.0.7
43+
- uses: satackey/action-docker-layer-caching@v0.0.11
44+
with:
45+
key: tutorial-docker-cache-{hash}
46+
restore-keys: |
47+
tutorial-docker-cache-
48+
layer-tutorial-docker-cache-
4049
- name: run test 1
4150
run: docker run --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 1
4251

4352
test_2:
4453
needs: build
4554
runs-on: ubuntu-latest
4655
steps:
47-
- uses: actions/checkout@v2
48-
- uses: satackey/action-docker-layer-caching@v0.0.7
56+
- uses: satackey/action-docker-layer-caching@v0.0.11
57+
with:
58+
key: tutorial-docker-cache-{hash}
59+
restore-keys: |
60+
tutorial-docker-cache-
61+
layer-tutorial-docker-cache-
4962
- name: run test 2
5063
run: docker run --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 2
5164

5265
test_3:
5366
needs: build
5467
runs-on: ubuntu-latest
5568
steps:
56-
- uses: actions/checkout@v2
57-
- uses: satackey/action-docker-layer-caching@v0.0.7
69+
- uses: satackey/action-docker-layer-caching@v0.0.11
70+
with:
71+
key: tutorial-docker-cache-{hash}
72+
restore-keys: |
73+
tutorial-docker-cache-
74+
layer-tutorial-docker-cache-
5875
- name: run test 3
5976
run: docker run --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 3

0 commit comments

Comments
 (0)