Skip to content

missing meta-labels input in build.yml #255

Description

@svix-jbrown

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

The call to docker-meta is given as

        name: Docker meta
        id: meta
        if: ${{ inputs.output == 'image' }}
        uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
        with:
          images: ${{ needs.prepare.outputs.metaImages }}
          tags: ${{ inputs.meta-tags }}
          flavor: ${{ inputs.meta-flavor }}
          labels: ${{ inputs.meta-labels }}
          annotations: ${{ inputs.meta-annotations }}

However, there is no meta-labels input! There's set-meta-labels (which gets merged with the output of docker/metadata-action), but that's different!

Expected behaviour

You should be able to pass meta-labels as an argument to this workflow and have it passed through to the metadata action

Actual behaviour

The workflow is not valid. Invalid input, meta-labels is not defined in the referenced workflow.

Repository URL

https://github.com/svix-jbrown/repro-docker-issue-20260716

Workflow run URL

https://github.com/svix-jbrown/repro-docker-issue-20260716/actions/runs/29539948543

YAML workflow

name: Docker Build Release
on:
  pull_request:
  push:
    branches: [main]
permissions:
  contents: read
  id-token: write
jobs:
  build:
    uses: docker/github-builder/.github/workflows/build.yml@3415a188caae9a0da7fba83bc06985776e0b1790 # v1.14.0
    permissions:
      contents: read # to fetch the repository content
      id-token: write # for signing attestation(s) with GitHub OIDC Token
    with:
      output: image
      file: Dockerfile
      context: .
      push: false
      platforms: linux/amd64,linux/arm64
      meta-flavor: |
        latest=false
      meta-labels: |
        org.opencontainers.image.version=1.0

Workflow logs

No response

BuildKit logs


Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions