Deployment

Enabling continuous deployment

Overview

Cloud 66 offers several ways to achieve continuous deployment for your applications. These methods all use triggers (such as commits to git repositories) to initiate the deployment process for your apps. This doc explores and compares each of the options.

Duplicate redeployment signals

If you had already enabled continuous integration via the Toolbelt and added redeployment hooks to your GitHub repo (before January 2022), you will now be sending two deployment signals to Cloud 66. Please remove any redeployment hooks from GitHub if you are using automated continuous deployment (see below).

Enabling automated continuous deployment

This method is only available if you have connected your Cloud 66 account to GitHub by installing the Cloud 66 GitHub account. If you have not done this, please follow our guide.

you can enable (and disable) continuous deployment in the Cloud 66 Dashboard:

  1. Log into your Cloud 66 Dashboard and click on your app
  2. Click on ⚙️ Settings in the left-hand nav
  3. Click on Deployment in the sub nav
  4. Check the box next to Continuous Deployment

Your application will now be deployed every time you commit changes to the branch of your repo which the application is set to use.

Use extra caution with live applications

This is particularly useful for development versions of your application, but we advise caution when using this feature with your live application.

Continuous integration tests

When you enable continuous deployment (as above) your application will deploy as soon as we detect an update to its repository. However, if you have tests or other integration tasks that run on GitHub (or that GitHub is aware of), you can set your application to wait for these to pass before deploying.

To do so, check the box next to Wait for continuous integration tests to pass before deploying. (This option only appears once you have enabled continuous deployment - see above).

Continuous deployment via redeployment hooks

Redeployment hooks are unique (per application) webhooks that trigger a deployment process for their related application. They will work with any system or service that accepts webhooks and can also be invoked manually, or via shell scripts. They can call deployment profiles, and their payloads can contain information on the branch being deployed.

Read our guide to redeployment hooks for more information on setting them up.

Via the Cloud 66 API

You can also use the deployments method in the Cloud API to trigger deployments. Read the API guide for more info.

Previous
Choosing a deployment strategy