Skip to content

Commit

Permalink
Add cache_froms input to support --cache-from
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Adcock <nick.adcock@docker.com>
  • Loading branch information
zappy-shu committed Apr 22, 2020
1 parent e5e36c4 commit abc498d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Suggestions and issues can be posted on the repositories [issues page](https://g
* [target](#target)
* [always_pull](#always_pull)
* [build_args](#build_args)
* [cache_froms](#cache_froms)
* [labels](#labels)
* [add_git_labels](#add_git_labels)
* [push](#push)
Expand Down Expand Up @@ -114,6 +115,15 @@ Example:
build_args: arg1=value1,arg2=value2
```

### `cache_froms`

Comma-delimited list of images to consider as cache sources.

Example:
```yaml
cache_froms: myorg/baseimage:latest
```

### `labels`

Comma-delimited list of labels to add to the built image.
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ inputs:
build_args:
description: Comma-delimited list of build-time variables
required: false
cache_froms:
description: Comma-delimited list of images to consider as cache sources
required: false
labels:
description: Comma-delimited list of labels to add to the built image
required: false
Expand Down

0 comments on commit abc498d

Please sign in to comment.