finance-api/.gitea/workflows/deploy-production.yml
Заид Омар Медхат 344912b77b
Some checks failed
Deploy Production / deploy (push) Failing after 3s
fix ci
2025-12-26 00:41:50 +05:00

29 lines
595 B
YAML

name: Deploy Production
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: docker
container:
image: docker:latest
volumes:
- /opt/apps/api-finance:/app
steps:
- name: Install git
run: apk add --no-cache 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: |
cd /app
docker compose -f docker-compose.server.yml up -d --build