grim/convey

96530de374c1
Apply environment to build task dockerfile value.
# convey/template
The template image is an image that can take a string or the path of a file within
the workspace and output another file within the workspace with the environment
variables replaced.
## Example
tasks:
build-info:
image: convey/template:latest
environment:
- TEMPLATE_STRING='branch: ${HG_BRANCH}\ncommit: ${HG_COMMIT_SHORT}'
- TEMPLATE_OUTPUT=/build_info
## Environment Variables
### TEMPLATE_FILE
The path of a file within the workspace to use as a template for the output.
### TEMPLATE_STRING
A string to use as a template for the output. This variable takes precedence over
`TEMPLATE_FILE` if both are provided.
One thing to note with this value is that you're most likely going to want to enclose
it with single quotes as in the example above. This will ensure the environment
variables and any escape characters such as `\n` are still included in the output file.
### TEMPLATE_OUTPUT
The path of a file within the workspace to write the output of the template to.