This repository has been archived on 2026-03-13. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
test-ci/.gitea/workflows/ci.yml
gqt 52bc7a069e
Some checks failed
Build and Push Docker Image / build (push) Failing after 1m31s
ci: use buildx with OCI label for auto repo linking
2026-02-08 13:17:07 +08:00

25 lines
700 B
YAML

name: Build and Push Docker Image
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Registry
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.chatgqt.top -u ${{ gitea.actor }} --password-stdin
- 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" \
.