Merge branch 'develop' into noel
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
commit
6a1fa2b8c0
|
@ -6,6 +6,8 @@ pipeline:
|
|||
- sleep 20
|
||||
- mysql -hdb -uroot -proot -e "CREATE DATABASE app"
|
||||
- eval "$MYSQLDUMP" | mysql -hdb -uroot -proot app
|
||||
when:
|
||||
branch: [master, master-*, develop, develop-*]
|
||||
|
||||
config:
|
||||
image: deblan/php:8.1
|
||||
|
@ -13,6 +15,8 @@ pipeline:
|
|||
- echo APP_ENV=prod >> .env.local
|
||||
- echo APP_SECRET=$(openssl rand -hex 32) >> .env.local
|
||||
- echo DATABASE_URL=mysql://root:root@db/app >> .env.local
|
||||
when:
|
||||
branch: [master, master-*, develop, develop-*]
|
||||
|
||||
composer:
|
||||
image: deblan/php:8.1
|
||||
|
@ -26,11 +30,15 @@ pipeline:
|
|||
- PHP=php
|
||||
commands:
|
||||
- ./bin/doctrine-migrate
|
||||
when:
|
||||
branch: [master, master-*, develop, develop-*]
|
||||
|
||||
jsroutes:
|
||||
image: deblan/php:8.1
|
||||
commands:
|
||||
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
|
||||
when:
|
||||
branch: [master, master-*, develop, develop-*]
|
||||
|
||||
node:
|
||||
image: node:16-slim
|
||||
|
@ -40,6 +48,7 @@ pipeline:
|
|||
- cat assets/fonts/deblan/deblan-icon.ttf | ttf2woff2 > assets/fonts/deblan/deblan-icon.woff2
|
||||
- ttf2eot assets/fonts/deblan/deblan-icon.ttf assets/fonts/deblan/deblan-icon.eot
|
||||
- yarn
|
||||
- test -f public/js/fos_js_routes.json || echo "{}" > public/js/fos_js_routes.json
|
||||
- npm run build
|
||||
|
||||
deploy:
|
||||
|
@ -58,6 +67,7 @@ pipeline:
|
|||
- sed -i "s#app_directory#$APP_DIRECTORY#g" .mage.yml
|
||||
- /root/.config/composer/vendor/bin/mage deploy "$CI_BUILD_DEPLOY_TARGET"
|
||||
when:
|
||||
branch: [master, master-*, develop, develop-*]
|
||||
event: [deployment]
|
||||
|
||||
services:
|
||||
|
|
Loading…
Reference in a new issue