Merging keys in concourse YAML files -
how can merge keys in concourse? var file has key value pairs like
cf-api-app: api- cf-dispatcher-app: dispatcher- cf-space: test
in pipeline want pass param task should like
pcf_api_app_name: ((cf-api-app))-((cf-space)) pcf_dispatcher_app_name: ((cf-dispatcher-app))-((cf-space))
so task can param based on environment, , like
pcf_api_app_name: api-test pcf_dispatcher_app_name: dispatcher-test
but guess somehow, not take combination expected , unable evaluate it.
i tried using anchor in config.yml
can merge keys in config file instead of pipeline still not work.
aliases: &environ test cf-api-app: api-*environ (fails) cf-dispatcher-app: dispatcher-*environ (fails) cf-space: *environ (works)
Comments
Post a Comment