mitai-jinkendo/.gitea/workflows/deploy-prod.yml
Lars 952cb90973
All checks were successful
Deploy Development / deploy (push) Successful in 55s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 15s
feat: Update deployment scripts to use git fetch and reset for more reliable state management
2026-04-05 11:39:15 +02:00

24 lines
707 B
YAML

name: Deploy Production
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to Production
run: |
set -e
echo "=== Deploying to PRODUCTION ==="
cd /home/lars/docker/bodytrack
# Arbeitskopie = exakt origin/main (vermeidet Abbruch bei lokalem package-lock o. ä.)
git fetch origin main
git reset --hard origin/main
docker compose -f docker-compose.yml build --no-cache
docker compose -f docker-compose.yml up -d
sleep 5
curl -sf http://localhost:8002/api/auth/status && echo "✓ PROD API healthy"
echo "=== PROD Deploy complete ==="