ci: verify pet app build on development branch
ci / verify (push) Failing after 4s

This commit is contained in:
2026-10-01 13:26:34 +08:00
parent ed2095950d
commit abc7ad3c84
2 changed files with 23 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
name: ci
on:
push:
branches: [feat/dev]
workflow_dispatch:
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: 检出代码
env:
GITEA_TOKEN: ${{ github.token }}
run: |
git init -q .
git remote add origin "https://token:${GITEA_TOKEN}@git.sundynix.cn/${{ github.repository }}.git"
git fetch -q --depth 1 origin "${{ github.ref }}"
git checkout -q FETCH_HEAD
- name: 测试并构建后端与管理端
run: docker build -f pets-be/Dockerfile -t "sundynix/pets-be:ci-${{ github.sha }}" pets-be