This commit is contained in:
parent
df3292f49d
commit
047e3f915a
|
@ -6,6 +6,8 @@ pipeline:
|
||||||
- sleep 20
|
- 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:
|
||||||
|
branch: [master, master-*, develop, develop-*]
|
||||||
|
|
||||||
config:
|
config:
|
||||||
image: deblan/php:8.1
|
image: deblan/php:8.1
|
||||||
|
@ -13,6 +15,8 @@ pipeline:
|
||||||
- echo APP_ENV=prod >> .env.local
|
- echo APP_ENV=prod >> .env.local
|
||||||
- echo APP_SECRET=$(openssl rand -hex 32) >> .env.local
|
- echo APP_SECRET=$(openssl rand -hex 32) >> .env.local
|
||||||
- echo DATABASE_URL=mysql://root:root@db/app >> .env.local
|
- echo DATABASE_URL=mysql://root:root@db/app >> .env.local
|
||||||
|
when:
|
||||||
|
branch: [master, master-*, develop, develop-*]
|
||||||
|
|
||||||
composer:
|
composer:
|
||||||
image: deblan/php:8.1
|
image: deblan/php:8.1
|
||||||
|
@ -26,11 +30,15 @@ pipeline:
|
||||||
- PHP=php
|
- PHP=php
|
||||||
commands:
|
commands:
|
||||||
- ./bin/doctrine-migrate
|
- ./bin/doctrine-migrate
|
||||||
|
when:
|
||||||
|
branch: [master, master-*, develop, develop-*]
|
||||||
|
|
||||||
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:
|
||||||
|
branch: [master, master-*, develop, develop-*]
|
||||||
|
|
||||||
node:
|
node:
|
||||||
image: node:16-slim
|
image: node:16-slim
|
||||||
|
@ -40,6 +48,7 @@ pipeline:
|
||||||
- cat assets/fonts/deblan/deblan-icon.ttf | ttf2woff2 > assets/fonts/deblan/deblan-icon.woff2
|
- 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
|
- ttf2eot assets/fonts/deblan/deblan-icon.ttf assets/fonts/deblan/deblan-icon.eot
|
||||||
- yarn
|
- yarn
|
||||||
|
- test -f public/js/fos_js_routes.json || echo "{}" > public/js/fos_js_routes.json
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -58,6 +67,7 @@ pipeline:
|
||||||
- sed -i "s#app_directory#$APP_DIRECTORY#g" .mage.yml
|
- sed -i "s#app_directory#$APP_DIRECTORY#g" .mage.yml
|
||||||
- /root/.config/composer/vendor/bin/mage deploy "$CI_BUILD_DEPLOY_TARGET"
|
- /root/.config/composer/vendor/bin/mage deploy "$CI_BUILD_DEPLOY_TARGET"
|
||||||
when:
|
when:
|
||||||
|
branch: [master, master-*, develop, develop-*]
|
||||||
event: [deployment]
|
event: [deployment]
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
Loading…
Reference in a new issue