This commit is contained in:
parent
8bfa026678
commit
748f67945d
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue