File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ echo "::warning::using ${AZURE_CONTAINER_REGISTRY}/${KUBERNETES_DEPLOYMENT_NAME}
38
38
39
39
kubectl rollout status deployment ${KUBERNETES_DEPLOYMENT_NAME}
40
40
41
+ if [ $alembic_exitcode -eq 0 ]; then
42
+ kubectl exec -i deployment/${KUBERNETES_DEPLOYMENT_NAME} -c $KUBERNETES_DEPLOYMENT_NAME -- alembic upgrade head
43
+ fi
44
+
41
45
set +e
42
46
exitcode=0
43
47
echo " ::warning::running test command: kubectl exec -i deployment/${KUBERNETES_DEPLOYMENT_NAME} -c $KUBERNETES_DEPLOYMENT_NAME -- '$TEST_CMD '"
@@ -60,8 +64,6 @@ if [ $alembic_exitcode -eq 0 ] && [ $exitcode -ne 0 ]; then
60
64
echo " ::notice::downgrading to alembic revision: $ALEMBIC_HEAD "
61
65
kubectl exec -i deployment/${KUBERNETES_DEPLOYMENT_NAME} -c $KUBERNETES_DEPLOYMENT_NAME -- alembic downgrade $ALEMBIC_HEAD
62
66
fi
63
- elif [ $alembic_exitcode -eq 0 ] && [ $exitcode -eq 0 ]; then
64
- echo " ::notice::alembic upgrade completed successfully"
65
67
fi
66
68
67
69
exit $exitcode
You can’t perform that action at this time.
0 commit comments