Merge branch 'feature/ci' into develop
This commit is contained in:
commit
58e5e2ff4e
|
@ -1,9 +1,13 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
|
wait_db:
|
||||||
|
image: gitnet.fr/deblan/timeout:latest
|
||||||
|
commands:
|
||||||
|
- /bin/timeout -t 30 -v -c 'while true; do nc -z -v db 3306 2>&1 | grep succeeded && exit 0; sleep 0.5; done'
|
||||||
|
|
||||||
create_db:
|
create_db:
|
||||||
image: mariadb:10.3
|
image: mariadb:10.3
|
||||||
secrets: [mysqldump]
|
secrets: [mysqldump]
|
||||||
commands:
|
commands:
|
||||||
- sleep 20
|
|
||||||
- mysql -hdb -uroot -proot -e "CREATE DATABASE app"
|
- mysql -hdb -uroot -proot -e "CREATE DATABASE app"
|
||||||
- eval "$MYSQLDUMP" | mysql -hdb -uroot -proot app
|
- eval "$MYSQLDUMP" | mysql -hdb -uroot -proot app
|
||||||
when:
|
when:
|
||||||
|
@ -31,14 +35,14 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- ./bin/doctrine-migrate
|
- ./bin/doctrine-migrate
|
||||||
when:
|
when:
|
||||||
branch: [master, master-*, develop, develop-*]
|
branch: [master, master-*, develop, develop-*, feature/*]
|
||||||
|
|
||||||
jsroutes:
|
jsroutes:
|
||||||
image: deblan/php:8.1
|
image: deblan/php:8.1
|
||||||
commands:
|
commands:
|
||||||
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
|
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
|
||||||
when:
|
when:
|
||||||
branch: [master, master-*, develop, develop-*]
|
branch: [master, master-*, develop, develop-*, feature/*]
|
||||||
|
|
||||||
node:
|
node:
|
||||||
image: node:16-slim
|
image: node:16-slim
|
||||||
|
|
Loading…
Reference in a new issue