File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,15 @@ jobs:
2121 # @see https://docs.docker.com/develop/develop-images/build_enhancements/
2222 COMPOSE_DOCKER_CLI_BUILD : " 1"
2323 DOCKER_BUILDKIT : " 1"
24+
2425 run : |
25- # use this image as a source of cache layers to speed up subsequent builds
26- # @see https://testdriven.io/blog/faster-ci-builds-with-docker-cache/
27- docker pull $CACHE_IMAGE
26+ # build an image using the current Docker Hub container image as a layers cache
2827
29- # build an image using the current Docker Hub container image
28+ # @see https://docs.docker.com/engine/reference/commandline/build/#specifying-external-cache-sources
29+ # no need to "docker pull $CACHE_IMAGE", BuildKit is clever enough to pull it when needed
3030 docker build . \
3131 --tag ${{ github.repository }} \
32+ --build-arg BUILDKIT_INLINE_CACHE=1 \
3233 --cache-from $CACHE_IMAGE
3334 docker images
3435
You can’t perform that action at this time.
0 commit comments