From 7e0200a43bd02fda1cab4b27bb7dc9c9f0f20cc8 Mon Sep 17 00:00:00 2001 From: plf1996 Date: Tue, 16 Jun 2026 16:27:40 +0800 Subject: [PATCH] ci: fix clone to /tmp/repo --- .gitea/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ccf93ae..4e40496 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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 \