Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattes/cached-docker-build-action
Store and retrieve docker images from Github Cache.
https://github.com/mattes/cached-docker-build-action
cache docker docker-build docker-image github-action github-action-cache
Last synced: 29 days ago
JSON representation
Store and retrieve docker images from Github Cache.
- Host: GitHub
- URL: https://github.com/mattes/cached-docker-build-action
- Owner: mattes
- License: unlicense
- Created: 2020-09-21T02:37:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T21:41:31.000Z (almost 2 years ago)
- Last Synced: 2024-12-06T06:03:42.350Z (about 1 month ago)
- Topics: cache, docker, docker-build, docker-image, github-action, github-action-cache
- Language: JavaScript
- Homepage:
- Size: 385 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cached Docker Build
This Github Action caches docker builds using the
official [actions/cache](https://github.com/actions/toolkit/tree/main/packages/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
* Implement `expires` flag, blocked by [Clear cache #2](https://github.com/actions/cache/issues/2).