Skip to content

Cached Docker Build

Actions
Use Github Action s cache to store and retrieve docker images
v1.0.1
Latest
Star (2)

Tags

 (1)

Cached Docker Build

This Github Action caches docker builds using the official actions/cache library.

Github Action Inputs

Variable Description
args Required Arguments passed to docker build command
cache_key Required Key used for caching

Example Usage

uses: mattes/cached-docker-build-action@v1
with:
  args: "--pull --file Dockerfile --tag my-image:tag ."
  cache_key: "${{ hashFiles('**/lockfiles') }}"

Future work

Cached Docker Build is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Use Github Action s cache to store and retrieve docker images
v1.0.1
Latest

Tags

 (1)

Cached Docker Build is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.