ci: fix clone to /tmp/repo
CI/CD Pipeline / build-and-deploy (push) Failing after 0s

This commit is contained in:
2026-06-16 16:27:40 +08:00
parent a8d4f8da64
commit 7e0200a43b
+3 -1
View File
@@ -10,11 +10,13 @@ jobs:
steps:
- name: Clone
run: |
git clone https://git.plfai.cn/test/fastapi-demo.git .
git clone https://git.plfai.cn/test/fastapi-demo.git /tmp/repo
cd /tmp/repo
git checkout ${GITHUB_SHA}
- name: Docker Build
run: |
cd /tmp/repo
docker build --network host \
-t registry.plfai.cn/fastapi-demo:${GITHUB_SHA:0:7} \
-t registry.plfai.cn/fastapi-demo:latest \