add ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2022-12-28 12:59:13 +01:00
parent b13918a958
commit 9c8c3db9f1
Signed by: deblan
GPG key ID: 579388D585F70417

42
.woodpecker.yml Normal file
View 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