From e1a94222e425e83bd2745d53c41847699ffb86c2 Mon Sep 17 00:00:00 2001 From: msumshk Date: Thu, 5 Feb 2026 15:14:39 +0800 Subject: [PATCH] fix: use direct git clone instead of external actions --- .gitea/workflows/deploy.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8f9b4bb..def6cc8 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,12 +10,15 @@ jobs: runs-on: host steps: - name: Checkout code - uses: https://gitea.com/actions/checkout@v4 - with: - submodules: recursive + run: | + rm -rf /opt/deploy/adminapi || true + mkdir -p /opt/deploy/adminapi + cd /opt/deploy/adminapi + git clone --depth 1 --branch dev --recurse-submodules ssh://git@git.laosankeji.com:2222/msumshk/TakeoutSaaS.AdminApi.git . - name: Build Docker image run: | + cd /opt/deploy/adminapi docker build -t takeoutsaas-adminapi:latest -f src/Api/TakeoutSaaS.AdminApi/Dockerfile . - name: Deploy container