ci: restore working clone to current dir
CI/CD Pipeline / build-and-deploy (push) Failing after 0s

This commit is contained in:
2026-06-16 16:31:07 +08:00
parent 7e0200a43b
commit 5f87e050e7
+2 -4
View File
@@ -8,15 +8,13 @@ jobs:
build-and-deploy: build-and-deploy:
runs-on: docker runs-on: docker
steps: steps:
- name: Clone - name: Clone code
run: | run: |
git clone https://git.plfai.cn/test/fastapi-demo.git /tmp/repo git clone https://git.plfai.cn/test/fastapi-demo.git .
cd /tmp/repo
git checkout ${GITHUB_SHA} git checkout ${GITHUB_SHA}
- name: Docker Build - name: Docker Build
run: | run: |
cd /tmp/repo
docker build --network host \ docker build --network host \
-t registry.plfai.cn/fastapi-demo:${GITHUB_SHA:0:7} \ -t registry.plfai.cn/fastapi-demo:${GITHUB_SHA:0:7} \
-t registry.plfai.cn/fastapi-demo:latest \ -t registry.plfai.cn/fastapi-demo:latest \