From 5f87e050e7eba6f25d47e67cecb34b2bbeb2bdd7 Mon Sep 17 00:00:00 2001 From: plf1996 Date: Tue, 16 Jun 2026 16:31:07 +0800 Subject: [PATCH] ci: restore working clone to current dir --- .gitea/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4e40496..49e7122 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,15 +8,13 @@ jobs: build-and-deploy: runs-on: docker steps: - - name: Clone + - name: Clone code run: | - git clone https://git.plfai.cn/test/fastapi-demo.git /tmp/repo - cd /tmp/repo + git clone https://git.plfai.cn/test/fastapi-demo.git . 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 \