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"