这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions tests/test_deploy
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ BRANCH="${5:-master}"
REMOTE="dokku@$TARGET"
REPO="test-$(basename "$APP")-$RANDOM"

ssh "$REMOTE" events:on

destroy_app() {
# shellcheck disable=SC2029
echo "$REPO" | ssh "$REMOTE" apps:destroy "$REPO"
ssh "$REMOTE" apps:destroy "$REPO" --force
ssh "$REMOTE" events:off
}

failed() {
Expand Down Expand Up @@ -58,7 +61,10 @@ if [[ "$SHOULD_FAIL" == true ]]; then
exit 0
fi

URL=$(dokku url "$REPO")$FORWARDED_PORT
ssh "$REMOTE" events
ssh "$REMOTE" apps:list
# shellcheck disable=SC2029
URL=$(ssh "$REMOTE" url "$REPO")$FORWARDED_PORT
sleep 2
if (./check_deploy "$URL"); then
echo "-----> Deploy success!"
Expand Down