Copy over the following folders and files to your repository
- circle
- config
- docroot/sites/default/settings.php
- drush
- gulp-tasks
- hooks
- .eslintignore
- .eslintrc
- .gitignore
- .phpcsignore
- circle.yml
- composer.json
- gulp-config.js
- gulpfile.js
- package.json
Feel free to switch out the asset building pieces and linting pieces with your own. Also to affect the local and prod builds see drush/drushrc.php
Set up the following Environment Variables on your project.
ACQUIA_USERCloud API E-mailACQUIA_TOKENCloud API Private key. Located in your profile under security. See: https://docs.acquia.com/acquia-cloud/api/authACQUIA_CANONICAL_ENVEnvironment to get database from. Usually "prod".ACQUIA_ENDPOINTCloud API Endpoint. Usually "https://cloudapi.acquia.com/v1".ACQUIA_REALMCloud API Realm. Usually "prod" or "devcloud". See: https://docs.acquia.com/acquia-cloud/api#realmACQUIA_SITECloud API Site parameter.ACQUIA_REPOAcquia git repo url.ACQUIA_BOT_EMAILEmail used to commit deployment commits.ACQUIA_BOT_NAMEDisplay name use for the deployment committer.
Add a ssh key via CircleCI's SSH Permissions page for the user you use with Acquia that can commit to the repository.
Following the technique documented at Acquia, ssh into your Acquia environment and run the following:
ACQUIA_USERCloud API E-mailACQUIA_TOKENCloud API Private key. Located in your profile under security. See: https://docs.acquia.com/acquia-cloud/api/authACQUIA_CANONICAL_ENVEnvironment to get database from. Usually "prod".ACQUIA_ENDPOINTCloud API Endpoint. Usually "https://cloudapi.acquia.com/v1".
mkdir /mnt/gfs/home/[REPLACE_WITH_SITE]/[REPLACE_WITH_ENV]/nobackup/
echo "ACQUIA_USER=user@email.com" >> /mnt/gfs/home/[REPLACE_WITH_SITE]/[REPLACE_WITH_ENV]/nobackup/bashkeys.sh
echo "ACQUIA_TOKEN=[REPLACE_WITH_ACQUIA_TOKEN]" >> /mnt/gfs/home/[REPLACE_WITH_SITE]/[REPLACE_WITH_ENV]/nobackup/bashkeys.sh
If you wish to see a super detailed walkthrough of how it works, see this presentation.