Skip to content

flavor's suffix not applied to latest #567

@porridge

Description

@porridge

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

I'm using the configuration pasted below and run this workflow on a v0.4.1 tag.

Expected behaviour

I'd expect the following tags according to docs:

          "quay.io/stackrox-io/image-prefetcher:v0.4.1-s390x",
          "quay.io/stackrox-io/image-prefetcher:v0.4-s390x",
          "quay.io/stackrox-io/image-prefetcher:v0-s390x",
          "quay.io/stackrox-io/image-prefetcher:sha-1f1047a-s390x",
          "quay.io/stackrox-io/image-prefetcher:latest-s390"

Actual behaviour

Instead results in the following tags:

          "quay.io/stackrox-io/image-prefetcher:v0.4.1-s390x",
          "quay.io/stackrox-io/image-prefetcher:v0.4-s390x",
          "quay.io/stackrox-io/image-prefetcher:v0-s390x",
          "quay.io/stackrox-io/image-prefetcher:sha-1f1047a-s390x",
          "quay.io/stackrox-io/image-prefetcher:latest"

Note the lack of suffix on the last line.

Repository URL

https://github.com/stackrox/image-prefetcher

Workflow run URL

https://github.com/stackrox/image-prefetcher/actions/runs/19629851352/job/56206761899#step:20:150

YAML workflow

- name: Prepare manifest OCI metadata for s390x
  id: meta-s390x
  uses: docker/metadata-action@v5
  with:
    images: "quay.io/stackrox-io/image-prefetcher"
    flavor: suffix=-s390x
    tags: |
      type=ref,event=branch,prefix=branch-
      type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
      type=semver,pattern=v{{major}}.{{minor}}
      type=semver,pattern=v{{major}}
      type=sha

Workflow logs

Bake file definition (tags)
  {
    "target": {
      "docker-metadata-action": {
        "tags": [
          "quay.io/stackrox-io/image-prefetcher:v0.4.1-s390x",
          "quay.io/stackrox-io/image-prefetcher:v0.4-s390x",
          "quay.io/stackrox-io/image-prefetcher:v0-s390x",
          "quay.io/stackrox-io/image-prefetcher:sha-1f1047a-s390x",
          "quay.io/stackrox-io/image-prefetcher:latest"
        ],
        "args": {
          "DOCKER_META_IMAGES": "quay.io/stackrox-io/image-prefetcher",
          "DOCKER_META_VERSION": "v0.4.1-s390x"
        }
      }
    }
  }

logs_50625962950.zip

BuildKit logs


Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions