Skip to content

Environments

Introduced in v1.7.0

ZaneOps supports complex development workflows through environments, giving you isolated instances of all services in a project. When you create a project, by default it comes with a production environment, you cann’t rename or delete that environment.

  1. In the project environments page + New Environment

    project environments page project environments page
  2. Choose which type of environment to create :

    clone environment modal clone environment modal
    1. If you select one environment in the Clone Environment dropdown, it will creates a copy of the selected environment, including services, variables, and configurations.

      • If you check deploy services ? all the services will be deployed upon cloning
      • If you don’t check deploy services ?, all services and their configuration will be staged for deployment, You will need to review and deploy manually all the staged changes.
    2. If you don’t select any environment in the dropdown, it will create an empty environment with no services in it.

Shared variables are inherited by all the services in this environment. If a service has the same variable, that will take precedence over the variable defined in this environment. You can reference these variables in services with {{env.VARIABLE_NAME}}.

Shared environment variables

ZaneOps will automatically replace the variable in the service :

Shared environment variables referenced in a service