25 lines
565 B
YAML
25 lines
565 B
YAML
name: Deploy Production
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy_production:
|
|
name: Deploy to Production
|
|
runs-on: docker-runner
|
|
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
|