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
9 changes: 9 additions & 0 deletions .github/workflows/bake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ on:
type: string
description: "List of custom annotations"
required: false
meta-pr-head-sha:
type: boolean
description: "Use the PR head SHA on pull_request events instead of GitHub's synthetic merge commit (sets DOCKER_METADATA_PR_HEAD_SHA)"
required: false
default: false
meta-bake-target:
type: string
description: "Bake target name for metadata (defaults to docker-metadata-action)"
Expand Down Expand Up @@ -609,6 +614,8 @@ jobs:
id: meta
if: ${{ inputs.output == 'image' }}
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
env:
DOCKER_METADATA_PR_HEAD_SHA: ${{ inputs.meta-pr-head-sha }}
with:
images: ${{ needs.prepare.outputs.metaImages }}
tags: ${{ inputs.meta-tags }}
Expand Down Expand Up @@ -1084,6 +1091,8 @@ jobs:
id: meta
if: ${{ inputs.output == 'image' }}
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
env:
DOCKER_METADATA_PR_HEAD_SHA: ${{ inputs.meta-pr-head-sha }}
with:
images: ${{ needs.prepare.outputs.metaImages }}
tags: ${{ inputs.meta-tags }}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ on:
type: string
description: "Flavor defines a global behavior for meta-tags"
required: false
meta-pr-head-sha:
type: boolean
description: "Use the PR head SHA on pull_request events instead of GitHub's synthetic merge commit (sets DOCKER_METADATA_PR_HEAD_SHA)"
required: false
default: false
secrets:
registry-auths:
description: "Raw authentication to registries, defined as YAML objects (for image output)"
Expand Down Expand Up @@ -502,6 +507,8 @@ jobs:
id: meta
if: ${{ inputs.output == 'image' }}
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
env:
DOCKER_METADATA_PR_HEAD_SHA: ${{ inputs.meta-pr-head-sha }}
with:
images: ${{ needs.prepare.outputs.metaImages }}
tags: ${{ inputs.meta-tags }}
Expand Down Expand Up @@ -940,6 +947,8 @@ jobs:
id: meta
if: ${{ inputs.output == 'image' }}
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
env:
DOCKER_METADATA_PR_HEAD_SHA: ${{ inputs.meta-pr-head-sha }}
with:
images: ${{ needs.prepare.outputs.metaImages }}
tags: ${{ inputs.meta-tags }}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ jobs:
| `meta-images` | List | | [List of images](https://github.com/docker/metadata-action?tab=readme-ov-file#images-input) to use as base name for tags (required for image output) |
| `meta-tags` | List | | [List of tags](https://github.com/docker/metadata-action?tab=readme-ov-file#tags-input) as key-value pair attributes |
| `meta-flavor` | List | | [Flavor](https://github.com/docker/metadata-action?tab=readme-ov-file#flavor-input) defines a global behavior for `meta-tags` |
| `meta-pr-head-sha` | Bool | `false` | Use the PR head SHA on `pull_request` events instead of GitHub's synthetic merge commit (sets [`DOCKER_METADATA_PR_HEAD_SHA`](https://github.com/docker/metadata-action#environment-variables)) |

### Secrets

Expand Down Expand Up @@ -342,6 +343,7 @@ jobs:
| `meta-labels` | List | | [List of custom labels](https://github.com/docker/metadata-action?tab=readme-ov-file#overwrite-labels-and-annotations) |
| `meta-annotations` | List | | [List of custom annotations](https://github.com/docker/metadata-action?tab=readme-ov-file#overwrite-labels-and-annotations) |
| `meta-flavor` | List | | [Flavor](https://github.com/docker/metadata-action?tab=readme-ov-file#flavor-input) defines a global behavior for `meta-tags` |
| `meta-pr-head-sha` | Bool | `false` | Use the PR head SHA on `pull_request` events instead of GitHub's synthetic merge commit (sets [`DOCKER_METADATA_PR_HEAD_SHA`](https://github.com/docker/metadata-action#environment-variables)) |

### Secrets

Expand Down