ci: add timeout step
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2023-01-01 12:10:58 +01:00
parent 834c7ac15f
commit c81b28d38d
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -2,7 +2,7 @@ pipeline:
wait_db:
image: gitnet.fr/deblan/timeout:latest
commands:
- /bin/timeout -t 30 -v -c 'while true; do nc -z -v db 3306; sleep 0.5; done'
- /bin/timeout -t 30 -v -c 'while true; do nc -z -v db 3306 | grep succeeded && exit 0 || sleep 0.5; done'
create_db:
image: mariadb:10.3