Skip to content

Commit

Permalink
fixup!chore(github-action): build cnb image - fail late mode - debug
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Sep 30, 2024
1 parent b5ee813 commit 332e832
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-using-cnb-buildpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ jobs:
echo "=== Check connectivity ==="
if nc -vz 127.0.0.1 8080;then echo "port 8080 available";else echo "port 8080 UNAVAILABLE";exit_status=1;fi
if nc -vz 127.0.0.1 ${SERVICE_PORT};then echo "port ${SERVICE_PORT} available";else echo "port ${SERVICE_PORT} UNAVAILABLE";exit_status=1;fi
echo "Checking redis server 127.0.0.1 : PING ==> $(redis-cli -a ${SERVICE_PASSWORD} -h 127.0.0.1 -p ${SERVICE_PORT} --no-warnings ping)"
echo "Checking redis server $SERVICE_HOST : PING ==> $(redis-cli -a ${SERVICE_PASSWORD} -h ${SERVICE_HOST} -p ${SERVICE_PORT} --no-warnings ping)"
echo "Checking redis server 127.0.0.1 : PING ==> $(redis-cli -a ${SERVICE_PASSWORD} -h 127.0.0.1 -p ${SERVICE_PORT} --no-auth-warning ping)"
echo "Checking redis server $SERVICE_HOST : PING ==> $(redis-cli -a ${SERVICE_PASSWORD} -h ${SERVICE_HOST} -p ${SERVICE_PORT} --no-auth-warning ping)"
function check_service() {
set -x
type="$1"
cmd="$2"
cmd_prefix="$3"
Expand All @@ -140,9 +141,9 @@ jobs:
}
export APP="http://127.0.0.1:8080"
exit_status=0
! create_service="$(check_service "Create" "curl -sSLf -X PUT $APP/foo -d data=bar")"
! get_service="$(check_service "Get" "curl -sSLf -X GET $APP/foo")"
! delete_service="$(check_service "Delete" "curl -vvv -sSL -X DELETE $APP/foo")"
! create_service="$(check_service "Create" "curl -sSLf -X PUT $APP/foo -d data=bar" )"
! get_service="$(check_service "Get" "curl -sSLf -X GET $APP/foo" )"
! delete_service="$(check_service "Delete" "curl -vvv -sSL -X DELETE $APP/foo" )"
exit_status=$((create_service + get_service + delete_service))
Expand Down

0 comments on commit 332e832

Please sign in to comment.