ci: fetch source archive from Gitea
ci / verify (push) Successful in 2m6s

This commit is contained in:
2026-10-01 13:30:13 +08:00
parent abc7ad3c84
commit e102f5c610
2 changed files with 11 additions and 10 deletions
+4 -4
View File
@@ -13,10 +13,10 @@ jobs:
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
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