fix(ci): rebuild docker containers before running db migrations
Some checks failed
Deploy Waveform to VPS / deploy (push) Failing after 3m11s
Some checks failed
Deploy Waveform to VPS / deploy (push) Failing after 3m11s
This commit is contained in:
parent
6fa8b1f1d4
commit
4d0e49c928
1 changed files with 3 additions and 3 deletions
|
|
@ -24,12 +24,12 @@ jobs:
|
|||
echo "Pulling latest code..."
|
||||
git pull origin main
|
||||
|
||||
echo "Applying DB migrations..."
|
||||
docker compose exec -T waveform-studio npx drizzle-kit push --config=drizzle.config.ts
|
||||
|
||||
echo "Rebuilding Docker containers..."
|
||||
DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker compose up -d --build
|
||||
|
||||
echo "Applying DB migrations..."
|
||||
docker compose exec -T waveform-studio npx drizzle-kit push --config=drizzle.config.ts
|
||||
|
||||
echo "Cleaning up unused Docker images..."
|
||||
docker image prune -f
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue