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
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user