finance-api/.gitea/workflows/deploy-production.yml
Заид Омар Медхат f414cb8549
Some checks are pending
Deploy Production / Deploy to Production (push) Waiting to run
ff
2025-12-26 00:03:31 +05:00

28 lines
600 B
YAML

name: Deploy Production
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy_production:
name: Deploy to Production
runs-on: ubuntu-latest
environment:
name: production
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Rebuild and restart Docker Compose
run: |
set -e
docker compose -f docker-compose.server.yml up -d --build
- name: 'Optional: Check service health'
run: |
curl --fail --silent --show-error https://api-finance.ai-assistant-bot.xyz/ || exit 1