Skip to content

Commit a7d09ed

Browse files
committed
perf(k8-test): only downgrade on failed test
1 parent 9946312 commit a7d09ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

k8s/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ set -e
4848
kubectl set image deployment/${KUBERNETES_DEPLOYMENT_NAME} ${KUBERNETES_DEPLOYMENT_NAME}=${KUBERNETES_POD_EXISTING_IMAGE}
4949
echo "::notice::using ${KUBERNETES_POD_EXISTING_IMAGE}"
5050

51-
if [ alembic_exitcode -eq 0 ]; then
51+
if [ alembic_exitcode -eq 0 ] && [ $exitcode -ne 0 ]; then
5252
ALEMBIC_HEAD=${ALEMBIC_CURRENT_REVISION:0:12}
5353

5454
ALEMBIC_UPDATED_REVISION=$(kubectl exec -i deployment/${KUBERNETES_DEPLOYMENT_NAME} -c $KUBERNETES_DEPLOYMENT_NAME -- alembic current)

0 commit comments

Comments
 (0)