File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 48
48
kubectl set image deployment/${KUBERNETES_DEPLOYMENT_NAME} ${KUBERNETES_DEPLOYMENT_NAME} =${KUBERNETES_POD_EXISTING_IMAGE}
49
49
echo " ::notice::using ${KUBERNETES_POD_EXISTING_IMAGE} "
50
50
51
- if [ alembic_exitcode -eq 0 ] && [ $exitcode -ne 0 ]; then
51
+ if [ $ alembic_exitcode -eq 0 ] && [ $exitcode -ne 0 ]; then
52
52
ALEMBIC_HEAD=${ALEMBIC_CURRENT_REVISION: 0: 12}
53
53
54
54
ALEMBIC_UPDATED_REVISION=$( kubectl exec -i deployment/${KUBERNETES_DEPLOYMENT_NAME} -c $KUBERNETES_DEPLOYMENT_NAME -- alembic current)
@@ -60,6 +60,8 @@ if [ alembic_exitcode -eq 0 ] && [ $exitcode -ne 0 ]; then
60
60
echo " ::notice::downgrading to alembic revision: $ALEMBIC_HEAD "
61
61
kubectl exec -i deployment/${KUBERNETES_DEPLOYMENT_NAME} -c $KUBERNETES_DEPLOYMENT_NAME -- alembic downgrade $ALEMBIC_HEAD
62
62
fi
63
+ elif [ $alembic_exitcode -eq 0 ] && [ $exitcode -eq 0 ]; then
64
+ echo " ::notice::alembic upgrade completed successfully"
63
65
fi
64
66
65
67
exit $exitcode
You can’t perform that action at this time.
0 commit comments