File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
actions/build-push-to-dockerhub Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 5353| `push` | Bool | Push the generated image (default : ` false` ) |
5454| `repository` | String | Docker repository name (**required**) |
5555| `tags` | List | Tags that should be used for the image (see the [metadata-action][mda] for details) |
56+ | `labels` | List | Labels that should be used for the image (see the [metadata-action][mda] for details) |
5657| `file` | String | Path and filename of the dockerfile to build from. (Default : ` {context}/Dockerfile` ) |
5758| `build-args` | String | List of arguments necessary for the Docker image to be built. |
5859| `target` | String | Sets the target stage to build |
Original file line number Diff line number Diff line change 99 description : |
1010 List of Docker images to be pushed.
1111 required : true
12+ labels :
13+ description : |
14+ List of custom labels to be added to the image.
15+ required : false
1216 context :
1317 description : |
1418 Path to the Docker build context.
@@ -106,6 +110,7 @@ runs:
106110 uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
107111 with :
108112 images : ${{ inputs.repository }}
113+ labels : ${{ inputs.labels }}
109114 tags : ${{ inputs.tags }}
110115
111116 # The `context` input is flagged by Zizmor as a [sink]. This means that with
You can’t perform that action at this time.
0 commit comments