atomic-server
atomic-server copied to clipboard
`invalid reference format` Docker tag wrong in CI on release?
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)
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.
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.
Ended up using a FOR loop!
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?