Update Docker configuration

This commit is contained in:
Oliver Davies 2023-01-21 15:50:45 +00:00
parent dba2b1004c
commit 9f398ee012
12 changed files with 224 additions and 50 deletions

52
build.yaml Normal file
View file

@ -0,0 +1,52 @@
name: docker-example-drupal
language: php
type: drupal-project
web:
type: nginx
database:
type: mariadb
version: 10
php:
version: 8.1-fpm-bullseye
phpcs:
standard: Drupal,DrupalPractice
phpstan:
level: max
docker-compose:
services:
database: ~
php:
build:
target: build
dockerfile:
stages:
build:
extends: base
packages:
- git
- libpng-dev
- libzip-dev
- mariadb-client
- unzip
extensions:
install:
- gd
- pdo_mysql
- zip
commands:
- composer validate
- composer install
test:
extends: base
commands:
- parallel-lint src --no-progress
- phpcs -vv
- phpstan
- phpunit --testdox