Create a New Workflow

To set up a Workflow follow this simple guide:

env0 relies on a file named env0.workflow.yml to describe the dependencies and configuration of the sub environments in your workflow. Each environment definition in the file should contain:

  1. name: Will be displayed in the workflow graph
  2. templateName: A name of a pre-defined Template to deploy
  3. needs (optional): An array of sub environments which all must be successfully deployed before this sub environment can start deploying
environments:
  vpc:
    name: 'VPC and Network'
    templateName: 'VPC'
  db:
    name: DB
    templateName: 'DB'
    needs:
      - vpc
  eks:
    name: EKS
    templateName: 'EKS'
    needs:
      - vpc
  service1:
    name: 'Billing Service'
    templateName: 'Billing Service'
    needs:
      - db
      - eks
  service2:
    name: 'Configuration Service'
    templateName: 'Configuration Service'
    needs:
      - db
      - eks
  service3:
    name: 'Notification Service'
    templateName: 'Notification Service'
    needs:
      - db
      - eks
  1. Create a new Template and select env0 Workflow as the Template Type
28302830

In the VCS step, fill in your VCS details and the directory that contains your env0.workflow.yml file

28842884
  1. Create an Environment based on the Workflow template
  2. Deploy
14591459

Did this page help you?