atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

`invalid reference format` Docker tag wrong in CI on release?

Open joepio opened this issue 1 year ago • 4 comments

Tried to release, but got this in the CI

Error: parse joepmeneer/atomic-server:v0.36.1
joepmeneer/atomic-server:latest: invalid reference format

I think this might be because steps.meta.outputs.tags outputs tags with newlines, while it should do something like space or comma seperated.

Previously, the issue may have been a dash - at the start of the tag. (possibly had that again just now)

joepio avatar Dec 11 '23 15:12 joepio

Could try this

- name: Convert newline-separated list to space-separated
  id: format_tags
  run: |
    SPACE_SEPARATED_TAGS=$(echo "${{ steps.meta.outputs.tags }}" | tr '\n' ' ')
    echo "SPACE_SEPARATED_TAGS=$SPACE_SEPARATED_TAGS" >> $GITHUB_ENV

- name: Use the space-separated tags
  run: |
    echo "Space-separated tags: $SPACE_SEPARATED_TAGS"

EDIT: Does not seem to work, unfortunately.

joepio avatar Dec 20 '23 12:12 joepio

Still getting it: https://github.com/atomicdata-dev/atomic-server/actions/runs/8469229991/job/23204071684#step:7:2308

I remember that it was a bug in Earthly parsing arguments or something. Not sure.

joepio avatar Apr 02 '24 08:04 joepio

Ended up using a FOR loop!

joepio avatar Jun 13 '24 09:06 joepio

Getting a new one: https://github.com/atomicdata-dev/atomic-server/actions/runs/9859121391

parse joepmeneer/atomic-server:-896-ios-double-tap-issue: invalid reference format

Is it allowed to start with a dash?

joepio avatar Jul 15 '24 11:07 joepio