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 c2942df0e9
Some checks failed
Build and Push Docker Image / build (push) Failing after 30s
ci: auto-link package to repo via API
2026-02-08 13:18:54 +08:00

27 lines
755 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 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"