Skip to content

Commit

Permalink
🐛 fix(faas_fn_build_invoke.yml): add sleep command before starting th…
Browse files Browse the repository at this point in the history
…e container

✨ feat(faas_fn_build_invoke.yml): improve error handling for container startup
  • Loading branch information
ccfontes committed Aug 20, 2023
1 parent 0abd8df commit 32c4c3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/faas_fn_build_invoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
(docker stop bb-http-map-context || exit 0)
(docker rm bb-http-map-context || exit 0)
sleep 20
docker run -d --name bb-http-map-context ghcr.io/${{ github.repository_owner }}/bb-http-map-context:latest bb --main index
if [ "$(docker exec bb-http-map-context curl -X POST -d '{"foo": "bar", "spam": "eggs"}' -H 'Content-Type: application/json' --retry 20 --retry-delay 2 --retry-connrefused http://127.0.0.1:8082)" != '[["foo","spam"],["bar","eggs"],"application/json",true]' ]; then
exit 7
Expand Down

0 comments on commit 32c4c3e

Please sign in to comment.