lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

Add support for publishing to GitHub Container Registry

Open Nutomic opened this issue 4 months ago • 10 comments

Continued from https://github.com/LemmyNet/lemmy/pull/5979 by @seang96

Nutomic avatar Sep 12 '25 12:09 Nutomic

Related to that error:

ERROR: failed to build: invalid tag "********/lemmy\nghcr.io/lemmynet/lemmy:1.0.0-alpha.8": invalid reference format

https://github.com/docker/setup-buildx-action/discussions/291

So I'm guessing ghcr doesn't like dots in tag names?

dessalines avatar Sep 12 '25 12:09 dessalines

I fixed that one already. Now theres another error: failed to build: tag is needed when pushing to registry. But the tag param is unchanged from before...

Nutomic avatar Sep 12 '25 12:09 Nutomic

The only things I could find were posts related to github actions. Maybe there's just a network blip with github not reading the tags fast enough?

dessalines avatar Sep 12 '25 12:09 dessalines

I don't see anything else related to tag besides one setting in the buildx plugin... so not sure what else to do there.

dessalines avatar Sep 12 '25 13:09 dessalines

Same error after restart

Edit: Here are the docs btw: https://codeberg.org/woodpecker-plugins/docker-buildx/src/branch/main/docs.md#multi-registry-push-example

Nutomic avatar Sep 12 '25 13:09 Nutomic

https://codeberg.org/woodpecker-plugins/docker-buildx/issues/156 mentions tagging issue might be related to newlines not generating properly?

seang96 avatar Sep 12 '25 13:09 seang96

try using tag: dev or tags: dev and see if that works. If so then it might be an issue with the injected tag var.

dessalines avatar Sep 12 '25 13:09 dessalines

https://codeberg.org/woodpecker-plugins/docker-buildx/issues/156 mentions tagging issue might be related to newlines not generating properly?

This is about tags_file which we dont use.

try using tag: dev or tags: dev and see if that works. If so then it might be an issue with the injected tag var.

Tried it and same error.

Edit: set auto_tag: true now and still fails.

Nutomic avatar Sep 12 '25 13:09 Nutomic

Maybe setting Daemon.Debug will provide some insights?

Edit: Found setting in the plugin here https://codeberg.org/woodpecker-plugins/docker-buildx/src/commit/b77706d30da9f5c88ce7e2f3a03e4ef819902d1f/plugin/plugin.go#L17

seang96 avatar Sep 12 '25 15:09 seang96

Added debug but it doesnt show any extra info.

Nutomic avatar Sep 16 '25 08:09 Nutomic