Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ context|The build context directory (the directory containing your Dockerfile an
dockerfile|Filename of the Dockerfile within the context that you set.| |`./Dockerfile`
platforms|Comma separated list of <a href="https://github.com/docker-library/official-images#architectures-other-than-amd64">platforms</a>.| |`linux/amd64`
target|The target build stage to build.| |
cache-from|List of external <a href="https://docs.docker.com/build/cache/backends/">cache sources</a> for the build (e.g., `type=gha`). Passed directly to `docker/build-push-action`.| |
cache-to|List of <a href="https://docs.docker.com/build/cache/backends/">cache export destinations</a> for the build (e.g., `type=gha,mode=max`). Passed directly to `docker/build-push-action`.| |

#### If you have more than one registry
**🔀 Input Name**|**📚 Description**|**🛑 Required**|**👉 Default**
Expand Down
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ inputs:
description: 'Comma separated list of platforms.'
default: 'linux/amd64'
required: false
cache-from:
description: 'List of external cache sources for the build (e.g., "type=gha"). Passed directly to docker/build-push-action.'
default: ''
required: false
cache-to:
description: 'List of cache export destinations for the build (e.g., "type=gha,mode=max"). Passed directly to docker/build-push-action.'
default: ''
required: false
runs:
using: 'composite'
steps:
Expand Down Expand Up @@ -92,6 +100,8 @@ runs:
push: true
tags: ${{ inputs.tags }}
target: ${{ inputs.target }}
cache-from: ${{ inputs.cache-from }}
cache-to: ${{ inputs.cache-to }}
branding:
icon: 'server'
color: 'blue'