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

28 lines
783 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 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: 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"