SUSE / cap

Apache License 2.0
2 stars 1 forks source link

Rename {cap-release,cap-pre-release}.yaml.tmpl to .yaml #31

Closed viccuad closed 4 years ago

viccuad commented 4 years ago

This allows for linting and easy editor highlighting, etc, as there's no need to have them as templates; they are config files afterall.

Load the config context in the "config" variable containing the context from the "config" datasource. It would be possible to load the config as a '.' context, but the context is lost when in "range" or "with", and would need to be addressed with $.key, which seems less clear than $config.key as we have with the datasource.

viccuad commented 4 years ago

Tested by trying to fly the cap-release and cap-pre-release pipelines, and seeing that they create good pipeline definitions using the config values.