Created
July 6, 2020 18:05
-
-
Save cari-lynn/2da8a5fabf681638f2ce6f8e3afaadc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:data", "data") | |
#@ load("@ytt:template", "template") | |
#@ def dep_yaml(deployment): | |
#@ key = "deploy:{}".format(deployment.name) | |
#@ return {key: {"script": deployment.script}} | |
#@ end | |
#@ for deployment in data.values.deployments: | |
_: #@ template.replace(dep_yaml(deployment)) | |
#@ end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@data/values | |
--- | |
deployments: | |
- name: develop | |
script: ./bin/deploy/develop.sh | |
- name: staging | |
script: ./bin/deploy/staging.sh | |
- name: productive | |
script: ./bin/deploy/productive.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment