-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove expires arg and update readme
- Loading branch information
Showing
3 changed files
with
30 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,27 @@ | ||
# cached-docker-build-action | ||
# Cached Docker Build | ||
|
||
This Github Action stores and retrieves a Docker image from Github's cache. | ||
It ueses 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). | ||
|
||
--pull Always attempt to pull a newer version of the image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters