ci: add prod and dev deployment workflows
This commit is contained in:
1 parent
5091dfd1ce
commit
b409a22322
3 files changed
+42
-38
No files matched your search
@@ -0,0 +1,21 @@
|
||||
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
|
||||
git pull origin main
|
||||
docker compose build --no-cache
|
||||
docker compose up -d
|
||||
sleep 5
|
||||
curl -sf http://localhost:8002/api/auth/status && echo "? API healthy"
|
||||
echo "=== PROD Deploy complete ==="
|
||||
Reference in new issue
Block a user