Skip to content

Commit

Permalink
Merge branch 'develop' into drupal9
Browse files Browse the repository at this point in the history
  • Loading branch information
becw committed Jun 26, 2020
2 parents afe2516 + 018b540 commit da6405c
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

* The `drupal.site.profile` property is no longer used by the default `install` target in `build.xml`. It will be removed in the 3.0 release. (#145)

## 2.3.2

### Fixed

* Fix the-build installation for platformsh ([PR #154](https://github.com/palantirnet/the-build/pull/155))

## 2.3.1

### Changed
Expand Down
69 changes: 69 additions & 0 deletions defaults/install/.circleci/deploy-acquia-example
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Example snippet for deploy job in config.yml. Add this code to deploy to Acquia. Update ACQUIA_PUBKEY
# with the entry from your known_hosts file for the Git remote host.
#
# You will also need to add a step to the build job to persist to workspace:
#
# - persist_to_workspace:
# root: ..
# paths:
# - project
#
# And, finally, add the new job to the workflow section:
#
# - deploy:
# requires:
# - build
# filters:
# branches:
# only:
# - develop

deploy:
working_directory: ~/project
docker:
- image: circleci/php:7.2-node-browsers
environment:
- NODE_VERSION: 8
- GITHUB_PUBKEY: "github.com,192.30.253.113 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=="
- ACQUIA_PUBKEY: "svn-23450.prod.hosting.acquia.com,54.245.120.237 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDit0Rj8j59i9Gj2vOg2TXjIbPswIc27PwncapyBLi9R3FtECXq+md1BfykBJjME83m78CtqkTlWwNZu+LyhF+IYlshKo82JXQzV4kWwi5L9H7KpdyFDMDLVCNVYmU4EQY9ngRq1cwbMBYsfWxv4sSlbsvZv2C8U7luNoc4SiBY4sGpgiMJLFOHWRw6YvhOamLTKfxSoJUT8uRbfkamxas1EK21XjvrdUSN0Bf5LmTdvs/9iIaUH4AlYr0SW0tc2IbIuoFVxuvSzZj2GJjmtCcW1poDMQLTGq+EuO4Mk1WyoUSJC9L8CFonKH7++EPHopvIbPMinO4r2zLEot3lL5TH"

steps:
- attach_workspace:
at: ..
- add_ssh_keys
- run:
name: Install packages
command: sudo apt-get install -y libpng-dev

- run:
name: Install nvm
command: |
set +e
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
touch $BASH_ENV
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- run:
name: Install PHP extensions
command: sudo docker-php-ext-install gd
- run:
name: Configure PHP
command: |
echo "memory_limit=-1" | sudo tee -a "/usr/local/etc/php/php.ini"
- run:
name: Configure Git
command: |
git config --global user.email "[email protected]"
git config --global user.name "Circle Deploy"
- run:
name: Add public keys to known hosts file.
command: |
mkdir -p ~/.ssh
echo $GITHUB_PUBKEY >> ~/.ssh/known_hosts
echo $ACQUIA_PUBKEY >> ~/.ssh/known_hosts
- run:
name: Make sites/default writable for artifact build
command: chmod u+w docroot/sites/default
- run:
name: Build and deploy an artifact
command: vendor/bin/phing artifact -Dpush=y
70 changes: 70 additions & 0 deletions defaults/install/.circleci/deploy-pantheon.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Example snippet for deploy job in config.yml. Add this code to deploy to Pantheon. Update PANTHEON_PUBKEY
# with the entry from your known_hosts file for the code server.
#
# You will also need to add a step to the build job to persist to workspace:
#
# - persist_to_workspace:
# root: ..
# paths:
# - project
#
# And, finally, add the new job to the workflow section:
#
# - deploy:
# requires:
# - build
# filters:
# branches:
# only:
# - develop
# - master

deploy:
working_directory: ~/project
docker:
- image: circleci/php:7.2-node-browsers
environment:
- NODE_VERSION: 8
- GITHUB_PUBKEY: "github.com,192.30.253.113 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=="
- PANTHEON_PUBKEY: "[codeserver.dev.56f20816-b4b7-4517-a90f-667b4785708d.drush.in]:2222,[35.193.151.123]:2222 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSY3gnr0DrbqJJSnEFy6jazDmAdBm4Zs/EkWIQa7x31qgSYyYJMz5V+pk62lBf2BN42VtubwO83vW9G+yG2K1RGOvZJaK5GBvBb/Ws2ZPcp/4sNHpPzkdd75e5/Pk8AWA59XUbJcBWmrDrHMbWV1j2zqPPikxbqGeTTjSx4QR18LIRei5OwT6VQnaVnJqPAqFZ+oCbpr0DL96foL3UEY8EWT/6GH2cANEGZO4ppbhdDw4uG6TaI7S0lxWMQEVy+iwjCNH/nanjd73cwoYd90E0OVdgNDr3hVbIuE6sUW6UwlaAwuyOM/xJYPg1y0rF66958pyVJlZ9KD5A0kY3bHg7"

steps:
- attach_workspace:
at: ..
- add_ssh_keys
- run:
name: Install packages
command: sudo apt-get install -y libpng-dev

- run:
name: Install nvm
command: |
set +e
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
touch $BASH_ENV
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- run:
name: Install PHP extensions
command: sudo docker-php-ext-install gd
- run:
name: Configure PHP
command: |
echo "memory_limit=-1" | sudo tee -a "/usr/local/etc/php/php.ini"
- run:
name: Configure Git
command: |
git config --global user.email "[email protected]"
git config --global user.name "Circle Deploy"
- run:
name: Add public keys to known hosts file.
command: |
mkdir -p ~/.ssh
echo $GITHUB_PUBKEY >> ~/.ssh/known_hosts
echo $PANTHEON_PUBKEY >> ~/.ssh/known_hosts
- run:
name: Make sites/default writable for artifact build
command: chmod u+w web/sites/default
- run:
name: Build and deploy an artifact
command: vendor/bin/phing artifact -Dpush=y -Dartifact.prefix=''
3 changes: 3 additions & 0 deletions targets/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

<project name="install" default="install">

<!-- This is required to set ${composer.composer} for installing for Platform.sh -->
<import file="the-build.xml" />

<property name="build.dir" value="${application.startdir}" />
<property name="build.env" value="default" />
Expand Down Expand Up @@ -268,6 +270,7 @@

<case value="platformsh">
<composer command="require" composer="${composer.composer}">
<arg line="--working-dir ${application.startdir}" />
<arg value="platformsh/config-reader:^2.1" />
</composer>
<httpget url="https://raw.githubusercontent.com/platformsh/template-drupal8/master/web/sites/default/settings.platformsh.php" dir="${build.dir}/${drupal.root}/sites/${drupal.site.dir}" />
Expand Down

0 comments on commit da6405c

Please sign in to comment.