From 344912b77be04824a2745caa3e87dbea0a529eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B0=D0=B8=D0=B4=20=D0=9E=D0=BC=D0=B0=D1=80=20?= =?UTF-8?q?=D0=9C=D0=B5=D0=B4=D1=85=D0=B0=D1=82?= Date: Fri, 26 Dec 2025 00:41:50 +0500 Subject: [PATCH] fix ci --- .gitea/workflows/deploy-production.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy-production.yml b/.gitea/workflows/deploy-production.yml index acc616d..35007ae 100644 --- a/.gitea/workflows/deploy-production.yml +++ b/.gitea/workflows/deploy-production.yml @@ -11,14 +11,18 @@ jobs: runs-on: docker container: image: docker:latest + volumes: + - /opt/apps/api-finance:/app steps: - name: Install git run: apk add --no-cache git - - name: Clone repository - run: git clone --depth 1 https://git.ai-assistant-bot.xyz/root/finance-api.git . + - name: Pull latest code + run: | + cd /app + git pull origin main || git clone --depth 1 https://git.ai-assistant-bot.xyz/root/finance-api.git . - name: Build & Deploy run: | - docker compose -f docker-compose.server.yml build - docker compose -f docker-compose.server.yml up -d + cd /app + docker compose -f docker-compose.server.yml up -d --build