Files
pulse-web/.gitea/workflows/deploy-prod.yml
Cosmo 2529651621
Some checks failed
CI / lint-test (push) Failing after 2s
CI / lint-test (pull_request) Failing after 1s
ci(deploy): fix - use mounted host path for deploy
2026-03-26 18:40:26 +00:00

27 lines
694 B
YAML

name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy pulse-web
run: |
cd /opt/digital-home/pulse-web
docker compose up -d --build
echo "Waiting for container..."
sleep 5
STATUS=$(docker inspect --format='{{.State.Status}}' pulse-web 2>/dev/null || echo "unknown")
echo "Container status: $STATUS"
if [ "$STATUS" != "running" ]; then
echo "::error::Container is not running after deploy"
docker logs pulse-web --tail=20
exit 1
fi
echo "Deploy successful!"