Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions actions/build-push-to-dockerhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
| `push` | Bool | Push the generated image (default: `false`) |
| `repository` | String | Docker repository name (**required**) |
| `tags` | List | Tags that should be used for the image (see the [metadata-action][mda] for details) |
| `labels` | List | Labels that should be used for the image (see the [metadata-action][mda] for details) |
| `file` | String | Path and filename of the dockerfile to build from. (Default: `{context}/Dockerfile`) |
| `build-args` | String | List of arguments necessary for the Docker image to be built. |
| `target` | String | Sets the target stage to build |
Expand Down
4 changes: 4 additions & 0 deletions actions/build-push-to-dockerhub/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ inputs:
description: |
List of Docker images to be pushed.
required: true
labels:
description: |
List of custom labels
context:
description: |
Path to the Docker build context.
Expand Down Expand Up @@ -106,6 +109,7 @@ runs:
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
with:
images: ${{ inputs.repository }}
labels: ${{ inputs.labels }}
tags: ${{ inputs.tags }}

# The `context` input is flagged by Zizmor as a [sink]. This means that with
Expand Down
Loading