Module vhost_alias
<VirtualHost *:80>
ServerAlias *.gitlab-runner.example
VirtualDocumentRoot /var/www/%1/web
</VirtualHost>
CREATE USER 'gitlab-runner'@'localhost';
GRANT ALL PRIVILEGES ON `dr\_%` . * TO ↩
'gitlab-runner'@'localhost';
/etc/sudoers.d/gitlab-runner:
gitlab-runner ALL=(ALL) NOPASSWD: ↩
/usr/local/bin/drupal-runner-sudo
/etc/lvm/lvm.conf:
activation {
snapshot_autoextend_threshold = 70
snapshot_autoextend_percent = 20
}
DRUPAL_RUNNER_BASE_DIR="/var/www"
DRUPAL_RUNNER_LOGICAL_VOLUME_PREFIX="/dev/vg0/dr-"
DRUPAL_RUNNER_DATABASE_PREFIX="dr_"
variables:
REVIEW_DOMAIN: gitlab-runner.example
stages:
- build
- test
- review
- deploy
build:
stage: build
script: /usr/local/bin/gitlab-runner build
[...]