From 7f287f3d16ce5ba756afcc34545cf57c4671f70a Mon Sep 17 00:00:00 2001 From: Joshua Dirga Date: Wed, 20 Nov 2024 18:11:26 -0500 Subject: [PATCH] Removed alembic dependency to previous migrations --- .github/workflows/deploy-dev.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index e31dbfa..5f185ec 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -46,6 +46,8 @@ jobs: sudo systemctl restart nginx docker stack deploy -c docker-compose.yml the-stack --with-registry-auth sleep 60s + docker exec $(docker ps -q -f name=the-stack_web) flask db stamp head + docker exec $(docker ps -q -f name=the-stack_web) flask db current attempt=1 max_attempts=5 until docker exec $(docker ps -q -f name=the-stack_web) flask db upgrade || [ $attempt -eq $max_attempts ]