Deploying a Green Preview Build

A blue/green deployment allows you to deploy a new build for testing before deploying it as your live build.

Context

To deploy a green build, there are two stages:
  • Create special preview endpoints to test the green deployment.

    The system disables the data backup and restore feature during a green deployment. A green deployment only has a single replica by default. The blue and green deployments both use the same databases.

  • Deploy the green build.

    When the green deployment is complete, you can preview the deployment by clicking the green deployment endpoint. You can use this endpoint to run your sanity checks.

Procedure

  1. Create a green endpoint.
    1. From the navigation menu, click Environments, then select the environment to modify.
    2. In the Public Endpoints panel, click Create.
    3. Complete the endpoints fields.
    4. Select the service type from the Service field, then select Green from the Service Version field.
    5. Complete the process to create the endpoint.
  2. Deploy a green build.
    1. From the navigation menu, click Builds, then select a green build to deploy.
    2. Click Deploy to Environment.
    3. Complete the deployment fields, then select Blue/Green from the Deployment Mode dropdown menu.
    4. Click Deploy.
    The environment details page appears to display the two types of deployment:
    • Blue deployment: The current deployment with its identification number.
    • Green deployment: The preview deployment with its identification number.