forked from acquia/acquia_cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acquia-pipelines.yml
47 lines (46 loc) · 1.94 KB
/
acquia-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This file is used by Acquia Pipelines continuous integration. Upon success, an
# artifact is deployed to the `orionacms` subscription on Acquia Cloud.
version: 1.3.0
services:
- composer:
version: 2
- php:
version: 8.1
events:
build:
steps:
- setup:
type: script
script:
- composer validate --no-check-all --ansi --no-interaction
- composer install
- mkdir -p docroot/modules/acquia_cms
# Create symlink directory for multisite headless and community.
- cd docroot/sites
- ln -s default headless
- ln -s default community
- cd -
- composer archive --format zip --file acquia_cms
- unzip acquia_cms.zip -d docroot/modules/acquia_cms
# Commenting as it's no longer needed and this is failing deployment.
# - front-end:
# type: script
# script:
# - cd docroot/themes/contrib/acquia_claro
# - npm install
# - npm run build
# - cd -
- cleanup:
type: script
script:
- rm acquia_cms.zip
# Prepare settings.php with the minimum required for Cloud.
- chmod -R +w docroot/sites/default
- cp docroot/sites/default/default.settings.php docroot/sites/default/settings.php
# Clear any config directories that Cloud tries to set in the include file.
- echo "\$config_directories = [];" >> docroot/sites/default/settings.php
# Use the existing `config` directory we already have. Cloud gets confused
# because we already have a config directory above docroot and manipulating it
# in Pipelines doesn't seem to work. This deployment is ephemeral, so using
# the existing config directory isn't a problem.
- echo "\$config_directories['sync'] = '../config';" >> docroot/sites/default/settings.php