Skip to content

Commit

Permalink
distribute: missing bake-target for metadata-action and verify tags
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Feb 16, 2025
1 parent 400ed06 commit 7fe8741
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/distribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
description: "Install QEMU static binaries"
required: false
default: true
# same as docker/metadata-action inputs
# same as docker/metadata-action inputs (minus sep-tags, sep-labels, sep-annotations)
meta-image:
type: string
description: "Image to use as base name for tags"
Expand All @@ -44,6 +44,10 @@ on:
type: string
description: 'List of custom annotations'
required: false
meta-bake-target:
type: string
description: 'Bake target name (default docker-metadata-action)'
required: false
# same as docker/login-action inputs (minus logout)
login-registry:
type: string
Expand Down Expand Up @@ -297,6 +301,7 @@ jobs:
flavor: ${{ inputs.meta-flavor }}
labels: ${{ inputs.meta-labels }}
annotations: ${{ inputs.meta-annotations }}
bake-target: ${{ inputs.meta-bake-target }}
-
name: Login to registry
uses: docker/login-action@v3
Expand Down Expand Up @@ -361,6 +366,7 @@ jobs:
flavor: ${{ inputs.meta-flavor }}
labels: ${{ inputs.meta-labels }}
annotations: ${{ inputs.meta-annotations }}
bake-target: ${{ inputs.meta-bake-target }}
-
name: Login to registry
uses: docker/login-action@v3
Expand Down Expand Up @@ -399,6 +405,9 @@ jobs:
}
if (${{ inputs.push }}) {
if (tags.length === 0) {
throw new Error('No tags to create manifest list');
}
await exec.getExecOutput('docker', createArgs, {
ignoreReturnCode: true
}).then(res => {
Expand Down

0 comments on commit 7fe8741

Please sign in to comment.