ci: use buildx with OCI label for auto repo linking
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m31s
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m31s
This commit is contained in:
@@ -14,8 +14,11 @@ jobs:
|
|||||||
- name: Login to Gitea Registry
|
- name: Login to Gitea Registry
|
||||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.chatgqt.top -u ${{ gitea.actor }} --password-stdin
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.chatgqt.top -u ${{ gitea.actor }} --password-stdin
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build and Push
|
||||||
run: docker build -t gitea.chatgqt.top/gqt/test-ci:latest .
|
run: |
|
||||||
|
docker buildx create --use --name gitea-builder 2>/dev/null || true
|
||||||
- name: Push Docker Image
|
docker buildx build --push \
|
||||||
run: docker push gitea.chatgqt.top/gqt/test-ci:latest
|
--provenance=false \
|
||||||
|
--tag gitea.chatgqt.top/gqt/test-ci:latest \
|
||||||
|
--label "org.opencontainers.image.source=https://gitea.chatgqt.top/gqt/test-ci" \
|
||||||
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user