ci: auto-link package to repo via API
Some checks failed
Build and Push Docker Image / build (push) Failing after 30s

This commit is contained in:
2026-02-08 13:18:54 +08:00
parent 52bc7a069e
commit c2942df0e9

View File

@@ -16,9 +16,11 @@ jobs:
- name: Build and Push - name: Build and Push
run: | run: |
docker buildx create --use --name gitea-builder 2>/dev/null || true docker build -t gitea.chatgqt.top/gqt/test-ci:latest .
docker buildx build --push \ docker push gitea.chatgqt.top/gqt/test-ci:latest
--provenance=false \
--tag gitea.chatgqt.top/gqt/test-ci:latest \ - name: Link Package to Repository
--label "org.opencontainers.image.source=https://gitea.chatgqt.top/gqt/test-ci" \ run: |
. curl -s -X POST \
-u "${{ gitea.actor }}:${{ secrets.REGISTRY_TOKEN }}" \
"https://gitea.chatgqt.top/api/v1/packages/gqt/container/test-ci/-/link/test-ci"