ci-auto-deploy
Version:
Automatic Deployment for Continuous Delivery Pipelines
54 lines (46 loc) • 1.27 kB
YAML
--- # Api Environment Variables
# CI-YAML DIRECTIVES, FILES, IMPORTS
include|: ${args.envPath}/my_services.yaml
# COMMON VARIABLES
common:
AUTHORIZATION: true
# ------------- STAGING ENVIRONMENT ----------------- #
staging:
common:
<<:
MY_ENV: staging
# Applications
myApi1:
<<:
SERVICES:
API_PATH: /my-api
API_ENDPOINT: https://staging.myendpoint.lorem.ipsum
readYaml|: ${tokenFile}, ${appName}
PORT: 6600
myApi2:
<<:
SERVICES:
API_PATH: /my-api2
API_ENDPOINT: https://staging.myendpoint.lorem.ipsum2
readYaml|: ${tokenFile}, ${appName}
PORT: 7700
# ------------- PRODUCTION ENVIRONMENT -------------- #
production:
common:
<<:
MY_ENV: production
# Applications
myApi1:
<<:
SERVICES:
API_PATH: /my-api
API_ENDPOINT: https://production.myendpoint.lorem.ipsum
readYaml|: ${tokenFile}, ${appName}
PORT: 6600
myApi2:
<<:
SERVICES:
API_PATH: /my-api2
API_ENDPOINT: https://production.myendpoint.lorem.ipsum2
readYaml|: ${tokenFile}, ${appName}
PORT: 7700