This project template is an opinionated fork of the popular Drupal-composer template, configured to automatically deploy code to a Kubernetes cluster using CircleCI. Everything that works with the Drupal-composer project template will work with this repository, so we won't duplicate the documentation here.
- Copy this repository and push it to our organization.
- Log in to CircleCI using your Github account and add the new project.
Each pushed commit is processed according to the instructions in .circleci/config.yml
in the repository.
Have a look at the file for details, but in short this is how it works:
- Run the CircleCI jobs using a custom docker image that has all the tools we need.
- Validate the codebase with phpcs and other static code analysis tools.
- Build the codebase by downloading vendor code using
composer
andyarn
. - Create a custom docker image for Drupal and nginx, and push those to a docker registry (typically that of your cloud provider).
- Install or update our helm chart while passing our custom images as parameters.
- The helm chart executes the usual drush deployment commands.