metadata-action icon indicating copy to clipboard operation
metadata-action copied to clipboard

Version metadata not working in v5.8.0

Open Meldiron opened this issue 4 months ago • 4 comments

Contributing guidelines

I've found a bug, and:

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

Description

Image cannot be pushed, originating from metadata issue of extracting version:

##[debug]manifest:org.opencontainers.image.version='

This stopped working recently, so my best guess is issue in most recent release of 5.8.0 instead of 5.7.0, because our job used v5.

The problem was solved for now by downgrading to 5.7.0 version.

Expected behaviour

Existing v5 jobs remain working with new minor version

Actual behaviour

Job fails due to version extraction issue

Repository URL

https://github.com/appwrite/console/

Workflow run URL

https://github.com/appwrite/console/actions/runs/16882183410/job/47827714696

YAML workflow

https://github.com/appwrite/console/blob/main/.github/workflows/publish.yml

Workflow logs

No response

BuildKit logs

  {
    "target": {
      "docker-metadata-action": {
        "annotations": [
          "manifest:org.opencontainers.image.created=2025-08-11T15:15:31.165Z",
          "manifest:org.opencontainers.image.description=The Console that makes Appwrite tick from the browser  🖥",
          "manifest:org.opencontainers.image.licenses=BSD-3-Clause",
          "manifest:org.opencontainers.image.revision=29e85017ed2bf87a866af6a3263927d93d6fa296",
          "manifest:org.opencontainers.image.source=https://github.com/appwrite/console",
          "manifest:org.opencontainers.image.title=console",
          "manifest:org.opencontainers.image.url=https://github.com/appwrite/console",
          "manifest:org.opencontainers.image.version="
        ]
      }
    }
  }

Additional info

For refference, following PR fixed it temporarly: https://github.com/appwrite/console/pull/2209

With a working job now: https://github.com/appwrite/console/actions/runs/16884720878/job/47829359004

Meldiron avatar Aug 11 '25 15:08 Meldiron

Thanks for reporting, we are taking a look.

crazy-max avatar Aug 11 '25 15:08 crazy-max

Seems GitHub ref is empty in 5.8.0 https://github.com/appwrite/console/actions/runs/16882183410/job/47827714696#step:6:31

  eventName: release
  sha: 29e85017ed2bf87a866af6a3263927d93d6fa296
  ref: 
  workflow: Publish
  action: meta
  actor: Meldiron
  runNumber: 337
  runId: 16882183410
  commitDate: Mon Aug 11 2025 13:52:31 GMT+0000 (Coordinated Universal Time)

But set in 5.7.0: https://github.com/appwrite/console/actions/runs/16884720878/job/47829359004#step:6:14

  eventName: release
  sha: dd61875d43731e6cc9dfb6486bd213a00a570784
  ref: refs/tags/6.1.30
  workflow: Publish
  action: meta
  actor: Meldiron
  runNumber: 338
  runId: 16884720878
  commitDate: Mon Aug 11 2025 15:31:15 GMT+0000 (Coordinated Universal Time)

Might be related to dependency update

crazy-max avatar Aug 11 '25 16:08 crazy-max

But set in 5.7.0: https://github.com/appwrite/console/actions/runs/16884720878/job/47829359004#step:6:14

  eventName: release
  sha: dd61875d43731e6cc9dfb6486bd213a00a570784
  ref: refs/tags/6.1.30
  workflow: Publish
  action: meta
  actor: Meldiron
  runNumber: 338
  runId: 16884720878
  commitDate: Mon Aug 11 2025 15:31:15 GMT+0000 (Coordinated Universal Time)

...

With a working job now: https://github.com/appwrite/console/actions/runs/16884720878/job/47829359004

@Meldiron Actually this one is using @v5 5.8.0 not 5.7.0: https://github.com/appwrite/console/actions/runs/16884720878/job/47829359004#step:1:61

Download immutable action package 'docker/metadata-action@v5'
  Version: 5.8.0
  Digest: sha256:ac0510c1bcaf77229cc55556e65fb04fbb39e28bef6bafe9d6726d525aab1831
  Source commit SHA: c1e51972afc2121e065aed6d45c65596fe445f3f

https://github.com/appwrite/console/actions/runs/16884720878/workflow#L24

crazy-max avatar Aug 11 '25 17:08 crazy-max

I cannot repro on my side for release or push tags events:

name: metadata

on:
  release:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      -
        name: Event
        run: cat $GITHUB_EVENT_PATH
      -
        name: Docker meta
        uses: docker/metadata-action@master
        with:
          images: |
            localhost:5000/name/app
            ghcr.io/name/app
          tags: |
            type=schedule
            type=ref,event=branch
            type=ref,event=tag
            type=ref,event=pr
            type=semver,pattern={{major}}.{{minor}}.{{patch}}
            type=semver,pattern={{major}}.{{minor}}
            type=semver,pattern={{major}}
            type=edge
            type=sha
      -
        name: Dump context
        uses: crazy-max/ghaction-dump-context@v2

I have the expected ref and org.opencontainers.image.version set accordingly:

Image

I wonder if this might have been something flaky on GitHub side.

@Meldiron Can you check again on your side? Thanks.

crazy-max avatar Aug 12 '25 07:08 crazy-max