Skip to content

Commit

Permalink
Merge pull request #4447 from GSA/deployment-harvesting
Browse files Browse the repository at this point in the history
Stop deployment for same reason as restarts
  • Loading branch information
btylerburton authored Sep 5, 2023
2 parents 618229c + 66dbd1d commit e1c7855
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bin/check-and-renew
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,17 @@ check_running_job "$@"

if [[ "$action" == "restart" ]]; then
if [[ $ok_to_restart == "YES" ]]; then
cf restart "$app_to_check" --strategy rolling
cf restart "$app_to_check" --strategy rolling
else
echo "Restart $app_to_check cancelled."
echo "Restart of $app_to_check cancelled."
fi
fi

if [[ "$action" == "deploy" ]]; then
cf push "$app_to_check" --vars-file vars.$space.yml --strategy rolling
if [[ $ok_to_restart == "YES" ]]; then
cf push "$app_to_check" --vars-file vars.$space.yml --strategy rolling
else
echo "Deployment for $app_to_check cancelled."
exit 1
fi
fi

0 comments on commit e1c7855

Please sign in to comment.