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
Show all changes
135 commits
Select commit Hold shift + click to select a range
efc5d22
Fixing linting so CI can work.
gregharvey Apr 14, 2023
1cb5a6d
More linting fixes.
gregharvey Apr 14, 2023
7d9463d
Downgrading Ubuntu due to Docker issues with ce-dev and latest.
gregharvey Apr 14, 2023
da0bb08
Making pipefail shell commands use /bin/bash.
gregharvey Apr 14, 2023
c24f6a3
Adding pipefail code to cachetool installer block.
gregharvey Apr 14, 2023
d69de84
Adding executable for drush install checker.
gregharvey Apr 14, 2023
2e9a3f2
Merge branch '1.x' into bug_fixes
gregharvey Apr 19, 2023
92107be
Fixing D7 ctools behaviour to match features handling.
gregharvey Apr 19, 2023
330a126
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Apr 19, 2023
eca7316
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Apr 19, 2023
e8a6920
Merge branch '1.x' into bug_fixes
gregharvey Apr 26, 2023
bb65b12
Jinja2 template looking for settings.php using wrong path.
gregharvey Apr 26, 2023
37c305b
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Apr 26, 2023
15f8897
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Apr 26, 2023
0b26394
Fixing config_generate for Drupal.
gregharvey May 11, 2023
00331c2
Making host checking more robust.
gregharvey May 11, 2023
f2bbc9e
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 11, 2023
2bbb925
Removing variable declaration that will break host check.
gregharvey May 11, 2023
287a23f
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 11, 2023
0f7a89d
Allow us to use deploy_code with a completely custom build and do not…
gregharvey May 11, 2023
2e04af8
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 11, 2023
f23a77b
Make PHP cachetool install optional.
gregharvey May 12, 2023
afdb3b9
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey May 12, 2023
9535d24
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 12, 2023
b955749
Fixing bug introduced by failed_when - need to check for return code …
gregharvey May 17, 2023
fdd74c5
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey May 17, 2023
9fb9149
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 17, 2023
a54569c
Moving where opcache clears get called so they can be excluded if nec…
gregharvey May 25, 2023
da2ebfd
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey May 25, 2023
f3790af
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 25, 2023
904c152
Merge branch '1.x' into bug_fixes
gregharvey Jun 21, 2023
a43c759
Fixing linting errors around white space.
gregharvey Jun 21, 2023
de9c0dd
Merge branch '1.x' into bug_fixes
gregharvey Jul 10, 2023
6d8b72c
The unarchive module requires 'dest' to be a directory.
gregharvey Jul 10, 2023
68fcca0
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Jul 10, 2023
a377ef9
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Jul 10, 2023
749664e
Fixing Drupal example templates.
gregharvey Jul 19, 2023
bd10146
Logically splitting tests and removing LGD because it's broken.
gregharvey Jul 19, 2023
273eacd
Adding extra plugin LGD needs.
gregharvey Jul 19, 2023
d5526d7
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Jul 19, 2023
3b3d20d
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Jul 19, 2023
54036ea
Clearing stat and apcu cache for PHP by default.
gregharvey Aug 8, 2023
0ebb707
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Aug 8, 2023
5eb8b9a
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Aug 8, 2023
07e2c21
Adding some perms handling for Drupal 8+ config sync where deploy and…
gregharvey Sep 22, 2023
edd2895
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Sep 22, 2023
2d87d16
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Sep 22, 2023
afdb4be
Merge branch '1.x' into bug_fixes
gregharvey Sep 22, 2023
48bb187
Rolling back APCu cache by default as the package must be installed.
gregharvey Sep 22, 2023
17536d0
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Sep 22, 2023
06c64ae
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Sep 22, 2023
37298ea
Making the remount squashfs code more defensive by using a block.
gregharvey Sep 25, 2023
da1d9c8
Merge branch '1.x' into bug_fixes
gregharvey Sep 25, 2023
3e8a252
Trying with 'throttle' keyword to restrict to one machine at a time.
gregharvey Sep 25, 2023
63fd83a
Sadly 'throttle' seems to work on a task level only, not a block level.
gregharvey Sep 25, 2023
57eb07b
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Sep 25, 2023
f90624a
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Sep 25, 2023
5265b02
Merge branch '1.x' into bug_fixes
gregharvey Sep 27, 2023
0ea98ab
Adding hash salt generation for Drupal 8+.
gregharvey Sep 27, 2023
0dcefe9
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Sep 27, 2023
0cb8f5f
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Sep 27, 2023
5a04f52
Trying a different syntax for passing params to the password plugin.
gregharvey Sep 27, 2023
362858d
Merging 1.x.
gregharvey Sep 27, 2023
a14e07b
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Sep 27, 2023
32e1dc3
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Sep 27, 2023
d05e2a8
Merge branch '1.x' into bug_fixes
gregharvey Oct 4, 2023
ea5fa85
Merge branch '1.x' into bug_fixes
gregharvey Oct 31, 2023
fb8d5fa
Forgot the constants import in plugin.
gregharvey Oct 31, 2023
dd86c45
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Oct 31, 2023
c6492fe
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Oct 31, 2023
bbcb524
Reinstating the SOPS plugin - we *do* need it.
gregharvey Nov 2, 2023
e13c546
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Nov 2, 2023
146fb58
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Nov 2, 2023
344348c
Making online/offline tasks use current live code/database.
gregharvey Nov 7, 2023
3c5c2b6
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Nov 7, 2023
26e6501
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Nov 7, 2023
d364d9c
We need build paths to bring the site back online if it's a squashfs …
gregharvey Nov 9, 2023
97047ba
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Nov 9, 2023
783a651
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Nov 9, 2023
6175dff
Ensuring _common.sh includes /etc/profile.d for Python venv path.
gregharvey Nov 13, 2023
14d955c
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Nov 13, 2023
7d828a6
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Nov 13, 2023
4ec522d
Making linter happy.
gregharvey Nov 13, 2023
e7e602a
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Nov 13, 2023
ea66b9a
Merge branch '1.x' into bug_fixes
gregharvey Nov 16, 2023
9f5731d
Using the drush_live_bin var in sync jobs for Drupal 8+.
gregharvey Nov 16, 2023
8a8303c
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Nov 16, 2023
04574e1
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Nov 16, 2023
0b773b2
Fixing database dump revert.
gregharvey Nov 24, 2023
a780fc4
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Nov 24, 2023
8adc18e
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Nov 24, 2023
631f763
Fixing gunzip command.
gregharvey Nov 24, 2023
aa9b499
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Nov 24, 2023
e9b0ab4
Having to do a double step to unpack SQL file in /tmp.
gregharvey Nov 24, 2023
a414d77
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Nov 24, 2023
f976139
Merge branch '1.x' into bug_fixes
gregharvey Jan 11, 2024
75dd608
Load bash profiles before executing a build.
gregharvey Jan 11, 2024
72f42b8
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Jan 11, 2024
e035064
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Jan 11, 2024
f7bc800
Fixing linting error, use -n instead of ! -z.
gregharvey Jan 11, 2024
552ec29
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Jan 11, 2024
d052df3
Adding support for specifying path to Ansible and path to Python inte…
gregharvey Jan 15, 2024
7c61bbe
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Jan 15, 2024
ca243d4
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Jan 15, 2024
6b2f00b
Merge branch '1.x' into bug_fixes
gregharvey Jan 31, 2024
7fd0495
Moving installation of cachetool to application includes, where they …
gregharvey Jan 31, 2024
caea297
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey Jan 31, 2024
d198c06
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Jan 31, 2024
8a1eaef
Merging 1.x
gregharvey Apr 30, 2024
fd452ef
Fixing minor typo.
gregharvey May 23, 2024
dc966de
Merge branch '1.x' into bug_fixes
gregharvey May 23, 2024
dc993f3
Merging 1.x.
gregharvey May 23, 2024
74c045d
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 23, 2024
158cc5e
Merge branch '1.x' into bug_fixes
gregharvey May 27, 2024
b63f1ac
Cleaning up namespacing.
gregharvey May 27, 2024
95e304c
Making quotes consistent.
gregharvey May 27, 2024
734ad8d
Making quotes consistent.
gregharvey May 27, 2024
daa36ce
Making quotes consistent.
gregharvey May 27, 2024
f99a769
Allowing for Drupal cron rollback on revert.
gregharvey May 27, 2024
dec9246
Only running maintenance mode enable on deploy.
gregharvey May 27, 2024
38e0a49
Merge branch '1.x' into bug_fixes-PR-1.x
gregharvey May 27, 2024
dfac403
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey May 27, 2024
c39025f
Merge branch '1.x' into bug_fixes
gregharvey Jun 5, 2024
6b6e118
Moving previous_deploy_path out of the squashfs block.
gregharvey Jun 5, 2024
899d93c
Merge branch '1.x' of github.com:codeenigma/ce-deploy into bug_fixes-…
gregharvey Jun 5, 2024
edc355c
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Jun 5, 2024
9dbd789
Committed installer by accident.
gregharvey Jun 5, 2024
c13b5c1
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Jun 5, 2024
5bffe53
Merge branch '1.x' into bug_fixes
gregharvey Dec 30, 2024
ba877e5
Trying to fix CI.
gregharvey Dec 30, 2024
cabfd66
Ensuring ASG handling only runs once per server.
gregharvey Dec 30, 2024
f81c0c5
Fixing namespaces flagged by linting.
gregharvey Dec 30, 2024
1db6851
Only need to look up the SquashFS image once per cluster.
gregharvey Dec 30, 2024
fc7d673
Merge branch '1.x' of github.com:codeenigma/ce-deploy into bug_fixes-…
gregharvey Dec 30, 2024
5e7fb8f
Merge branch 'bug_fixes' into bug_fixes-PR-1.x
gregharvey Dec 30, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/ce-deploy-test-drupal8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sudo mv ./mkcert /usr/local/bin && cd ../
sudo chmod +x /usr/local/bin/mkcert
rm -Rf mkcert
curl -sL https://raw.githubusercontent.com/codeenigma/ce-dev/1.x/install.sh | /bin/sh -s -- linux
curl -sL https://raw.githubusercontent.com/codeenigma/ce-dev/2.x/install.sh | /bin/sh -s -- --platform linux

# Uses the ce-dev stack to run a test Drupal deploy
- name: Run a test ce-dev deploy with Drupal 8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ce-deploy-test-drupal9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sudo mv ./mkcert /usr/local/bin && cd ../
sudo chmod +x /usr/local/bin/mkcert
rm -Rf mkcert
curl -sL https://raw.githubusercontent.com/codeenigma/ce-dev/1.x/install.sh | /bin/sh -s -- linux
curl -sL https://raw.githubusercontent.com/codeenigma/ce-dev/2.x/install.sh | /bin/sh -s -- --platform linux

# Uses the ce-dev stack to run a test Drupal deploy
- name: Run a test ce-dev deploy with Drupal 9
Expand Down
6 changes: 6 additions & 0 deletions ce-dev/ce-dev.compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
x-ce_dev: {}
volumes:
- ../:/home/ce-dev/ce-deploy
platform: linux/amd64
cgroup: host
web:
image: codeenigma/ce-dev-1.x
x-ce_dev:
Expand All @@ -21,7 +23,11 @@ services:
- 443
volumes:
- ../ce-dev/build/:/home/ce-dev/deploy/live.local:delegated
platform: linux/amd64
cgroup: host
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: ce-dev
platform: linux/amd64
cgroup: host
1 change: 1 addition & 0 deletions roles/_exit/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
ansible.builtin.command: >
aws autoscaling resume-processes --auto-scaling-group-name {{ aws_asg.name }} --region {{ aws_asg.region }}
delegate_to: localhost
run_once: true
when:
- aws_asg.name is defined
- aws_asg.name | length > 0
Expand Down
1 change: 1 addition & 0 deletions roles/_init/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
ansible.builtin.command: >
aws autoscaling suspend-processes --auto-scaling-group-name {{ aws_asg.name }} --scaling-processes {{ aws_asg.suspend_processes }} --region {{ aws_asg.region }}
delegate_to: localhost
run_once: true
when:
- aws_asg.name is defined
- aws_asg.name | length > 0
1 change: 1 addition & 0 deletions roles/deploy_code/tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
ansible.builtin.stat:
path: "{{ build_base_path }}/deploy.sqsh"
register: _deploy_code_mount_image
run_once: true

- name: Copy previous SquashFS image to shared mount point in case of rollback.
ansible.builtin.copy:
Expand Down
8 changes: 4 additions & 4 deletions roles/npm/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Perform NPM steps.
command:
ansible.builtin.command:
cmd: "{{ npm.executor }} {{ npm_command }}"
chdir: "{{ npm.working_dir }}"
with_items: "{{ npm.commands }}"
Expand All @@ -9,7 +9,7 @@
when: deploy_operation == 'deploy'

- name: Generate additional templates.
template:
ansible.builtin.template:
src: "{{ template.src }}"
dest: "{{ deploy_path }}/{{ template.dest }}"
with_items: "{{ npm.templates }}"
Expand All @@ -20,7 +20,7 @@
- deploy_operation == 'deploy'

- name: Create additional symlinks.
file:
ansible.builtin.file:
src: "{{ link.src }}"
dest: "{{ deploy_path }}/{{ link.dest }}"
state: link
Expand All @@ -30,4 +30,4 @@
loop_var: link
when:
- npm.symlinks | length
- deploy_operation == 'deploy'
- deploy_operation == 'deploy'
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
- not database.source.fresh_db

- name: Register source database host.
set_fact:
ansible.builtin.set_fact:
mysql_sync_source_database_host: "{{ mysql_host_info_grep.stdout.split('=')[1] }}"
when:
- not database.source.fresh_db
Expand Down
Loading