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

This commit is contained in:
Simon Vieille 2023-01-01 11:56:28 +01:00
parent 8bfa026678
commit 748f67945d
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -1,9 +1,13 @@
pipeline:
wait_db:
image: gitnet.fr/deblan/timeout:latest
commands:
- /bin/timeout -t 30 -c 'while true; do nc -z -v db 3306; sleep 0.5; done'
create_db:
image: mariadb:10.3
secrets: [mysqldump]
commands:
- sleep 20
- mysql -hdb -uroot -proot -e "CREATE DATABASE app"
- eval "$MYSQLDUMP" | mysql -hdb -uroot -proot app
when: