Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/workflows/ce-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
git config --global user.name "Code Enigma CI"

# Uses the ce-dev stack to run a test Drupal deploy
- name: Run a test ce-dev deploy
- name: Run a test ce-dev deploy with Drupal 8
run: |
ce-dev create -p test -t drupal8 -d ~/test
cd ~/test
Expand All @@ -59,6 +59,28 @@ jobs:
curl https://www.test.local
shell: bash

- name: Run a test ce-dev deploy with Drupal 9
run: |
ce-dev create -p testnine -t drupal9 -d ~/testnine
cd ~/testnine
ce-dev init
ce-dev start
ce-dev provision
ce-dev deploy
curl https://www.testnine.local
shell: bash

- name: Run a test ce-dev deploy with Localgov
run: |
ce-dev create -p testlocalgov -t localgov -d ~/testlocalgov
cd ~/testlocalgov
ce-dev init
ce-dev start
ce-dev provision
ce-dev deploy
curl https://www.testlocalgov.local
shell: bash

# Builds the table of contents for the docs
- name: Documentation (build table of contents)
if: ${{ github.event.pull_request.base.ref == '1.x' }}
Expand Down
55 changes: 55 additions & 0 deletions ce-dev/ansible/examples/drupal9/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
# Template playbook for a local Drupal9 codebase.
- hosts: deploy-web
vars:
- project_name: example
- project_type: drupal8
- webroot: web
- build_type: local
- _env_type: dev
- _domain_name: www.{{ project_name }}.local
# Path to your project root. This must match the "volume" set in the docker-compose template.
- deploy_path: /home/ce-dev/deploy/live.local
# This actually does not take any backup, but is needed to populate settings.php.
- mysql_backup:
handling: none
credentials_handling: static
# A list of Drupal sites (for multisites).
- drupal:
sites:
- folder: "default"
public_files: "sites/default/files"
install_command: "-y si"
# Toggle config import on/off. Disabled for initial passes.
config_import_command: ""
# config_import_command: "cim"
config_sync_directory: "config/sync"
sanitize_command: "sql-sanitize"
# Remove after initial pass, to avoid reinstalling Drupal.
force_install: yes
base_url: "https://{{ _domain_name }}"
# Composer command to run.
- composer:
command: install
no_dev: no
working_dir: "{{ deploy_path }}"
apcu_autoloader: no
pre_tasks:
# You can safely remove these steps once you have a working composer.json.
- name: Download composer file.
get_url:
url: https://raw.githubusercontent.com/drupal/recommended-project/9.3.x/composer.json
dest: "{{ deploy_path }}/composer.json"
force: no
- name: Install drush.
command:
cmd: composer require drush/drush:11.*
chdir: "{{ deploy_path }}"
roles:
- _init # Sets some variables the deploy scripts rely on.
- composer # Composer install step.
- database_backup # This is still needed to generate credentials.
- config_generate # Generates settings.php
# - sync/database_sync # Grab database from a remote server.
- database_apply # Run drush updb and config import.
- _exit # Some common housekeeping.
59 changes: 59 additions & 0 deletions ce-dev/ansible/examples/localgov/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
# Template playbook for a local localgov codebase.
- hosts: deploy-web
vars:
- project_name: example
- project_type: drupal8
- webroot: web
- build_type: local
- _env_type: dev
- _domain_name: www.{{ project_name }}.local
# Path to your project root. This must match the "volume" set in the docker-compose template.
- deploy_path: /home/ce-dev/deploy/live.local
# This actually does not take any backup, but is needed to populate settings.php.
- mysql_backup:
handling: none
credentials_handling: static
# A list of Drupal sites (for multisites).
- drupal:
sites:
- folder: "default"
public_files: "sites/default/files"
install_command: "-y si localgov"
# Toggle config import on/off. Disabled for initial passes.
config_import_command: ""
# config_import_command: "cim"
config_sync_directory: "config/sync"
sanitize_command: "sql-sanitize"
# Remove after initial pass, to avoid reinstalling Drupal.
force_install: yes
base_url: "https://{{ _domain_name }}"
# Composer command to run.
- composer:
command: install
no_dev: no
working_dir: "{{ deploy_path }}"
apcu_autoloader: no
pre_tasks:
# You can safely remove these steps once you have a working composer.json.
- name: Download composer file.
get_url:
url: https://raw.githubusercontent.com/drupal/recommended-project/9.3.x/composer.json
dest: "{{ deploy_path }}/composer.json"
force: false
- name: Install drush.
command:
cmd: composer require drush/drush:11.*
chdir: "{{ deploy_path }}"
- name: Install localgov.
command:
cmd: composer require localgovdrupal/localgov
chdir: "{{ deploy_path }}"
roles:
- _init # Sets some variables the deploy scripts rely on.
- composer # Composer install step.
- database_backup # This is still needed to generate credentials.
- config_generate # Generates settings.php
# - sync/database_sync # Grab database from a remote server.
- database_apply # Run drush updb and config import.
- _exit # Some common housekeeping.