23 lines
602 B
YAML
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
|