Skip to content

Commit

Permalink
fixup!chore(github-action): build cnb image - fail late mode - restor…
Browse files Browse the repository at this point in the history
…e retry in verbose mode
  • Loading branch information
o-orand committed Oct 1, 2024
1 parent d9ee15c commit ea25334
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-using-cnb-buildpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,16 @@ jobs:
function check_service() {
type="$1"
cmd="$2"
cmd_prefix="$3"
if [ -z "$cmd_prefix" ];then
cmd_prefix="curl"
fi
status=0
echo "$type using > $cmd <" 1>&2
if $cmd;then
echo "" 1>&2
echo "$type failed" 1>&2
echo "$type failed: retry in verbose mode" 1>&2
$cmd_prefix -vvv ${cmd##$cmd_prefix}
status=1
else
echo "" 1>&2
Expand All @@ -143,7 +148,7 @@ jobs:
get_service_output="$(check_service "Get" "curl -sSLf -X GET $APP/foo" )"
get_service=$?
delete_service_output="$(check_service "Delete" "curl -vvv -sSL -X DELETE $APP/foo" )"
delete_service_output="$(check_service "Delete" "curl -sSLf -X DELETE $APP/foo" )"
delete_service=$?
set -e
Expand Down

0 comments on commit ea25334

Please sign in to comment.