Files
godot-ci/.gitea/workflows/publish.yml
T
haylanandClaude-Bot 1d15d6950f 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>
2026-08-06 20:20:13 +02:00

33 lines
1.2 KiB
YAML

name: Publish godot-ci image
on:
push:
branches: [main]
paths: [Dockerfile]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to Gitea registry
run: echo "${{ secrets.REGISTRY_PUSH_PAT }}" | docker login git.arthurerlich.de -u haylan --password-stdin
- name: Build and push
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"