Skip to content

Store and retrieve docker images from Github Cache.

License

Notifications You must be signed in to change notification settings

mattes/cached-docker-build-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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