From 1d15d6950f81c009da0e96deee919c66b9c9a952 Mon Sep 17 00:00:00 2001 From: ArthurErlich Date: Thu, 6 Aug 2026 20:20:13 +0200 Subject: [PATCH] fix(publish): explicitly link pushed image to this repository MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gitea packages belong to the owner, not a repo, by default — pushing alone doesn't surface the image under this repo's Packages tab, and the org.opencontainers.image.source label some workflows set for this doesn't auto-link on Gitea (closed feature request, never implemented). Call the link API explicitly after push instead. Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/publish.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 7dd3838..b4aca89 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -19,3 +19,14 @@ jobs: run: | docker build -t git.arthurerlich.de/haylan/godot-ci:4.7.1 . docker push git.arthurerlich.de/haylan/godot-ci:4.7.1 + + # Gitea packages belong to the owner, not a repo, by default — pushing + # the image alone does NOT make it show up under this repo's Packages + # tab. Link it explicitly. Non-fatal: a failure here (e.g. already + # linked) shouldn't fail a build whose push already succeeded. + - name: Link package to this repository + run: | + curl -sS -X POST \ + -H "Authorization: token ${{ secrets.REGISTRY_PUSH_PAT }}" \ + "https://git.arthurerlich.de/api/v1/packages/haylan/container/godot-ci/-/link/godot-ci" \ + || echo "link step failed (may already be linked) — check manually if needed"