From 4938202813b502e8a624db4fa1831a558f1c84b0 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 3 Aug 2024 10:32:05 +0100 Subject: [PATCH] Add Drupal example --- examples/drupal/build-configs.yaml | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 examples/drupal/build-configs.yaml diff --git a/examples/drupal/build-configs.yaml b/examples/drupal/build-configs.yaml new file mode 100644 index 0000000..e519ccd --- /dev/null +++ b/examples/drupal/build-configs.yaml @@ -0,0 +1,44 @@ +--- +name: project-name +template: drupal +parameters: + database: + type: mariadb + version: 10 + + drupal: + docroot: web + + docker-compose: + services: + - database + - php + - web + + dockerfile: + stages: + build: + commands: + - composer validate --strict + - composer install + + php: + version: 8.2-fpm-bullseye + phpcs: + paths: + - web/modules/custom + standards: + - Drupal + - DrupalPractice + phpstan: + level: max + paths: + - web/modules/custom + + web: + type: nginx + + experimental: + createGitHubActionsConfiguration: true + runGitHooksBeforePush: true + useNewDatabaseCredentials: true