mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-06 03:15:34 +01:00
refactor(drupal): reorganise templates
This commit is contained in:
parent
578340ca8f
commit
783d76fcf5
4 changed files with 24 additions and 60 deletions
46
templates/drupal/.github/workflows/ci.yml.twig
vendored
Normal file
46
templates/drupal/.github/workflows/ci.yml.twig
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
COMPOSE_DOCKER_CLI_BUILD: 1
|
||||
DOCKER_BUILDKIT: 1
|
||||
DOCKER_UID: 1001
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
name: Build and test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Install just
|
||||
run: |
|
||||
curl --proto '=https' \
|
||||
--tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
|
||||
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
|
||||
- name: Build and test
|
||||
run: |
|
||||
docker compose version
|
||||
|
||||
docker network create traefik_proxy
|
||||
|
||||
cp --no-clobber .env.example .env
|
||||
|
||||
docker compose build --progress plain
|
||||
|
||||
docker compose up --detach
|
||||
docker compose logs
|
||||
|
||||
just composer install --quiet --no-progress
|
||||
|
||||
just test --testdox --colors=always
|
||||
|
||||
just _run php phpcs
|
||||
just _run php phpstan analyze --no-progress --memory-limit=512M
|
6
templates/drupal/caddy/Caddyfile.twig
Normal file
6
templates/drupal/caddy/Caddyfile.twig
Normal file
|
@ -0,0 +1,6 @@
|
|||
# {{ managedText | raw }}
|
||||
|
||||
:80
|
||||
root * {{ project_root }}/{{ drupal.docroot }}
|
||||
file_server
|
||||
php_fastcgi php:9000
|
22
templates/drupal/nginx/default.conf.twig
Normal file
22
templates/drupal/nginx/default.conf.twig
Normal file
|
@ -0,0 +1,22 @@
|
|||
# {{ managedText | raw }}
|
||||
|
||||
server {
|
||||
server_name _;
|
||||
|
||||
root {{ project_root }}/{{ drupal.docroot }};
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
|
||||
try_files $fastcgi_script_name =404;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_pass php:9000;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue