65 lines
1,006 B
YAML
65 lines
1,006 B
YAML
name: docker-example-drupal
|
|
language: php
|
|
type: drupal-project
|
|
|
|
web:
|
|
type: nginx
|
|
|
|
database:
|
|
type: mariadb
|
|
version: 10
|
|
|
|
php:
|
|
version: 8.1-fpm-bullseye
|
|
phpcs:
|
|
paths:
|
|
- web/modules/custom
|
|
standards:
|
|
- Drupal
|
|
- DrupalPractice
|
|
phpstan:
|
|
level: max
|
|
paths:
|
|
- web/modules/custom
|
|
|
|
drupal:
|
|
docroot: web
|
|
|
|
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
|
|
|
|
experimental:
|
|
createGitHubActionsConfiguration: true
|
|
useNewDatabaseCredentials: true
|