fix(publish): explicitly link pushed image to this repository
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 <noreply@anthropic.com>
This commit is contained in:
@@ -19,3 +19,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker build -t git.arthurerlich.de/haylan/godot-ci:4.7.1 .
|
docker build -t git.arthurerlich.de/haylan/godot-ci:4.7.1 .
|
||||||
docker push 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"
|
||||||
|
|||||||
Reference in New Issue
Block a user