Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/backend-cd-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ jobs:

docker pull $IMAGE

docker network create rythmify-net 2>/dev/null || true
docker network connect rythmify-net rythmify-redis 2>/dev/null || true

docker run --rm \
--network bridge \
--network rythmify-net \
-e DATABASE_URL="$DATABASE_URL" \
$IMAGE \
npm run migrate:up
Expand All @@ -59,7 +62,7 @@ jobs:
docker run -d \
--name rythmify-backend \
--restart unless-stopped \
--network bridge \
--network rythmify-net \
-p 8080:8080 \
-e NODE_ENV=production \
-e PORT=8080 \
Expand Down Expand Up @@ -90,6 +93,8 @@ jobs:
-e REDIS_URL=redis://rythmify-redis:6379 \
$IMAGE

docker network connect rythmify-net rythmify-backend 2>/dev/null || true

sleep 30

PASSED=false
Expand Down
Loading