Compare commits

...

3 commits

Author SHA1 Message Date
Alexey Skobkin 6f6bd4e34f
Adding first .drone.yml draft with simple composer build and console run.
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2022-07-11 02:07:13 +03:00
Alexey Skobkin f3cd8cfc00
Removing needless variables from .env. 2022-07-11 02:06:34 +03:00
Alexey Skobkin f1c6f3ddd7
Adding TODO note to sentry.yaml. 2022-07-11 02:05:53 +03:00
3 changed files with 18 additions and 4 deletions

16
.drone.yml Normal file
View file

@ -0,0 +1,16 @@
kind: pipeline
type: docker
name: build-app
steps:
- name: build-deps
image: 'composer:2.3'
environment:
APP_ENV: dev
commands:
- composer install --no-progress --no-interaction --optimize-autoloader
- bin/console about
- 'bin/console lint:container'
- 'bin/console lint:twig'
- 'bin/console lint:container'
- 'bin/console lint:yaml'

4
.env
View file

@ -22,10 +22,6 @@ REDIS_DSN=redis://127.0.0.1:6379/0
SENTRY_DSN=
###< sentry/sentry-symfony ###
# docker-compose
PHP_FPM_PORT=9000
APP_LOCAL_PATH=/var/www/magnetico-web/current
###> symfony/mailer ###
MAILER_DSN=smtp://localhost
MAILER_FROM=no-reply@magnetico-web.tld

View file

@ -13,6 +13,8 @@ services:
- 'Symfony\Component\HttpKernel\Exception\BadRequestHttpException'
- 'Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException'
# TODO: update:
# https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration
Sentry\Monolog\Handler:
arguments:
$hub: '@Sentry\State\HubInterface'