Sha256: d01792981f3c752b86a2a79999b488d21ab42da05e0a1cf58e78374b0aa76fd2

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

aliases:
  common: &common
    # Org name for staging. (customize to your needs)
    # Production apps will use a different Control Plane org, specified below, for security.
    # keys beginning with CPLN correspond to your settings in Control Plane
    cpln_org: my-org-staging

    # Example apps use only location. CPLN offers the ability to use multiple locations.
    # TODO -- allow specfication of multiple locations
    default_location: aws-us-east-2

    # Configure the workload name used as a template for one-off scripts, like a Heroku one-off dyno.
    one_off_workload: rails

    # Workloads that are application itself and are using application docker image
    app_workloads:
      - rails
      - sidekiq

    # Additional "service type" workloads, using non-application docker images
    additional_workloads:
      - redis
      - postgres
      - memcached

    # Configure the workload name used when maintenance mode is on (defaults to 'maintenance')
    maintenance_workload: maintenance

apps:
  my-app-staging:
    # Use the values from the common section above
    <<: *common
  my-app-review:
    <<: *common
    # if match_if_app_name_starts_with == true, then use this config for app names beginning,
    # like my-app-review-pr123 or my-app-review-anything-goes
    match_if_app_name_starts_with: true
  my-app-production:
    <<: *common
    # Use a different org for production
    cpln_org: my-org-production
    # Allows running command 'cpl pipeline-promote my-app-staging' to promote the staging app to production
    upstream: my-app-staging
  my-app-other:
    <<: *common
    # you can specify different dockerfile relative to .controlplane folder, default is just 'Dockerfile'
    dockerfile: ../some_other/Dockerfile

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cpl-1.0.0 examples/controlplane.yml
cpl-0.7.0 examples/controlplane.yml