Skip to content

Commit

Permalink
fixup!chore(github-action): build cnb image - fail late mode
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Sep 30, 2024
1 parent 3cbafa6 commit f8cb10d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-using-cnb-buildpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ 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} ping)"
echo "Checking redis server $SERVICE_HOST : PING ==> $(redis-cli -a ${SERVICE_PASSWORD} -h ${SERVICE_HOST} -p ${SERVICE_PORT} ping)"
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)"
function check_service() {
type="$1"
Expand All @@ -136,9 +136,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 f8cb10d

Please sign in to comment.