From 4351056969bf96d17e9fa10dc4d0f253c95e26e2 Mon Sep 17 00:00:00 2001 From: plf1996 Date: Tue, 16 Jun 2026 16:01:47 +0800 Subject: [PATCH] ci: replace actions/checkout with native git clone --- .gitea/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 30b16d9..cf9e5f2 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -7,11 +7,11 @@ on: jobs: build-and-deploy: runs-on: docker - container: - image: docker:cli steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Clone code + run: | + git clone https://git.plfai.cn/test/fastapi-demo.git . + git checkout ${GITHUB_SHA} - name: Docker Build run: | @@ -26,7 +26,7 @@ jobs: docker push registry.plfai.cn/fastapi-demo:${GITHUB_SHA:0:7} docker push registry.plfai.cn/fastapi-demo:latest - - name: Deploy + - name: ArgoCD Sync run: | curl -sk -o /dev/null -X POST \ -H "Authorization: Bearer ${{ secrets.ARGOCD_TOKEN }}" \