Files
sundynix-pets/.gitea/workflows/ci.yml
T
Blizzard e102f5c610
ci / verify (push) Successful in 2m6s
ci: fetch source archive from Gitea
2026-10-01 13:30:13 +08:00

23 lines
602 B
YAML

name: ci
on:
push:
branches: [feat/dev]
workflow_dispatch:
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: 检出代码
env:
GITEA_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
curl -fLsS -H "Authorization: token ${GITEA_TOKEN}" \
"https://git.sundynix.cn/${{ github.repository }}/archive/${{ github.sha }}.tar.gz" \
| tar -xz --strip-components=1
- name: 测试并构建后端与管理端
run: docker build -f pets-be/Dockerfile -t "sundynix/pets-be:ci-${{ github.sha }}" pets-be