Hello,
i was looking for a way to parse variables in YAML files, in order to use some kind of template and just change 2 or 3 specific parameters
for example, i have 3 environments (DEV, PREPROD, PROD) which should use same YAML file Template, and will just need to replace environment itself
Example:
---
version: 2
deployment:
name: STATUS
source-plan: "ROCKET-STATUS"
release-naming:
next-version-name: "Run"
environments:
- DEV
DEV:
tasks:
- script:
interpreter: shell
scripts:
- echo dev
i have same for PREPROD and PROD
i would like to put in beggining of the file STAGE=DEV and stage=dev
and then just use $STAGE or $stage
please help