This commit is contained in:
parent
b13918a958
commit
9c8c3db9f1
42
.woodpecker.yml
Normal file
42
.woodpecker.yml
Normal file
|
@ -0,0 +1,42 @@
|
|||
pipeline:
|
||||
create_db:
|
||||
image: mariadb:10.3
|
||||
commands:
|
||||
- mysql -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:
|
||||
- composer install
|
||||
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
|
Loading…
Reference in a new issue