45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
pipeline:
|
|
create_db:
|
|
image: mariadb:10.3
|
|
commands:
|
|
- sleep 20
|
|
- mysql -hdb -uroot -proot -e "CREATE DATABASE app"
|
|
config:
|
|
image: deblan/php:8.1
|
|
commands:
|
|
- echo APP_ENV=prod >> .env.local
|
|
- echo APP_SECRET=$(openssl rand -hex 32) >> .env.local
|
|
- echo DATABASE_URL=mysql://app:app@db/app >> .env.local
|
|
composer:
|
|
image: deblan/php:8.1
|
|
commands:
|
|
- apt-get update && apt-get -y install git
|
|
- composer install --no-scripts
|
|
migrate:
|
|
image: deblan/php:8.1
|
|
environment:
|
|
- PHP=php
|
|
commands:
|
|
- ./bin/doctrine-migrate
|
|
jsroutes:
|
|
image: deblan/php:8.1
|
|
commands:
|
|
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
|
|
node:
|
|
image: node:16-slim
|
|
commands:
|
|
- npm install -g svg2ttf ttf2eot ttf2woff2
|
|
- svg2ttf assets/fonts/deblan/src/deblan-icon.svg assets/fonts/deblan/deblan-icon.ttf
|
|
- 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
|
|
- npm run build
|
|
|
|
services:
|
|
db:
|
|
image: mariadb:10.3
|
|
environment:
|
|
- MARIADB_USER=app
|
|
- MARIADB_PASSWORD=app
|
|
- MARIADB_ROOT_PASSWORD=root
|