Skip to content

Commit fdf875e

Browse files
committed
passing env
1 parent a980daf commit fdf875e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/node-api-cicd.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ jobs:
147147
docker compose -f docker-compose.vps.yml up -d db
148148
sleep 5
149149
docker compose -f docker-compose.vps.yml pull api
150-
export DATABASE_URL=$(grep '^DATABASE_URL=' .env | cut -d '=' -f2- | tr -d '"')
151-
echo "DATABASE_URL: $DATABASE_URL"
152-
DATABASE_URL="$DATABASE_URL" docker compose -f docker-compose.vps.yml run --rm api npx prisma migrate deploy
150+
docker compose -f docker-compose.vps.yml run --rm --env-file .env api npx prisma migrate deploy
153151
docker compose -f docker-compose.vps.yml up -d api --remove-orphans
154152
docker image prune -f

0 commit comments

Comments
 (0)