Skip to content

Commit e73d7d1

Browse files
committed
fix gpss
1 parent 4ae875f commit e73d7d1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bashrc/development.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ _git_push_and_approve() {
3434
shift
3535
fi
3636

37-
git push $push_flags && rack-gateway deploy-approval wait --racks "$racks" --approve
37+
git push $push_flags || return 1
38+
39+
# Wait for CI to pass before waiting for deploy approval
40+
if [ -f scripts/wait_for_ci_build ]; then
41+
scripts/wait_for_ci_build || return 1
42+
fi
43+
44+
rack-gateway deploy-approval wait --racks "$racks" --approve
3845
}
3946

4047
gpss() { _git_push_and_approve "staging" "$@"; }

0 commit comments

Comments
 (0)