You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# action-docker-layer-caching [](https://github.com/satackey/action-docker-layer-caching/actions?query=workflow%3A%22Readme+Test%22)[](https://github.com/satackey/action-docker-layer-caching/actions?query=workflow%3ACI)
2
2
3
3
Enable Docker Layer Caching by adding only one line.
4
4
@@ -17,12 +17,19 @@ jobs:
17
17
steps:
18
18
- uses: actions/checkout@v2
19
19
20
-
# Avoid caching pull-only images.(docker pull is faster than caching in most cases.)
20
+
# Pull the latest image to build, and avoid caching pull-only images.
21
+
# (docker pull is faster than caching in most cases.)
21
22
- run: docker-compose pull
22
23
23
-
# Images created after this action is called are cached.
24
+
# In this step, this action saves a list of existing images,
25
+
# the cache is created without them in the post run.
26
+
# It also restores the cache if it exists.
24
27
- uses: satackey/action-docker-layer-caching@v0.0
28
+
25
29
- run: docker-compose build
30
+
31
+
# Finally, "Post Run satackey/action-docker-layer-caching@v0.0",
32
+
# which is the process of saving the cache, will be executed.
0 commit comments