From c2942df0e9c009efa7464b16c779b8e15dcbed33 Mon Sep 17 00:00:00 2001 From: gqt <3217233537@qq.com> Date: Sun, 8 Feb 2026 13:18:54 +0800 Subject: [PATCH] ci: auto-link package to repo via API --- .gitea/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 16176e2..31105da 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,9 +16,11 @@ jobs: - name: Build and Push run: | - docker buildx create --use --name gitea-builder 2>/dev/null || true - docker buildx build --push \ - --provenance=false \ - --tag gitea.chatgqt.top/gqt/test-ci:latest \ - --label "org.opencontainers.image.source=https://gitea.chatgqt.top/gqt/test-ci" \ - . + docker build -t gitea.chatgqt.top/gqt/test-ci:latest . + docker push gitea.chatgqt.top/gqt/test-ci:latest + + - name: Link Package to Repository + 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"