From 9c8c3db9f1da04f823b10496ef716084df6ed1d6 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 28 Dec 2022 12:59:13 +0100 Subject: [PATCH] add ci --- .woodpecker.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..51285bb --- /dev/null +++ b/.woodpecker.yml @@ -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