ci: auto-link package to repo via API
Some checks failed
Build and Push Docker Image / build (push) Failing after 30s
Some checks failed
Build and Push Docker Image / build (push) Failing after 30s
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user