fix ci
Some checks failed
Deploy Production / deploy (push) Failing after 3s

This commit is contained in:
Заид Омар Медхат 2025-12-26 00:41:50 +05:00
parent 5b7462d929
commit 344912b77b

View File

@ -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