Public | Automated Build

Last pushed: 2 days ago
Short Description
A convey build image to create files based on templates.
Full Description

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.

Docker Pull Command
Owner
convey
Source Repository