update mage conf
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/deployment/deploy Pipeline was successful

This commit is contained in:
Simon Vieille 2023-11-03 22:21:17 +01:00
parent d6917efc8c
commit a9bd08a634
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 6 additions and 4 deletions

View file

@ -25,4 +25,6 @@ magephp:
- ssh_host
on-deploy:
- exec: { cmd: 'make clean', desc: 'cache' }
- exec: { cmd: 'test -f .build && make build || true', desc: 'build' }
- exec: { cmd: 'make doctrine-migration', desc: 'migration' }
- exec: { cmd: 'php ./bin/console cache:warmup', desc: 'warmup' }
- exec: { cmd: 'php ./bin/console cache:warmup', desc: 'warmup2' }

View file

@ -20,20 +20,20 @@ steps:
- mysql -hdb -uroot -proot -e "CREATE DATABASE app"
app-config:
image: deblan/php:8.1
image: deblan/php:8.0
commands:
- echo APP_ENV=prod >> .env.local
- echo APP_SECRET=$(openssl rand -hex 32) >> .env.local
- echo DATABASE_URL=mysql://root:root@db/app >> .env.local
php-composer:
image: deblan/php:8.1
image: deblan/php:8.0
commands:
- apt-get update && apt-get -y install git
- composer install --no-scripts
php-build:
image: deblan/php:8.1
image: deblan/php:8.0
environment:
- PHP=php
commands: