ci: use buildx with OCI label for auto repo linking
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m31s

This commit is contained in:
2026-02-08 13:17:07 +08:00
parent 58f3088fb4
commit 52bc7a069e

View File

@@ -14,8 +14,11 @@ jobs:
- name: Login to Gitea Registry
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.chatgqt.top -u ${{ gitea.actor }} --password-stdin
- name: Build Docker Image
run: docker build -t gitea.chatgqt.top/gqt/test-ci:latest .
- name: Push Docker Image
run: docker push gitea.chatgqt.top/gqt/test-ci:latest
- 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" \
.