The custom
exporter
A convinient way to run your own shell commands at various stages of the build process, without having to create your own exporter in a separate YAML file.
Configuration
The configuration of the custom exporter corresponds to the fields used to create an exporter:
- before
- Commands to run before the build starts. Go text template that receives .Data
- List of Exporter commands
- after
- Commands to run after the build finishes. Go text template that receives .Data and .Database, the built database.
- List of Exporter commands
Exporter command
- run
- Run a command in a shell
- log
- Log a message. The first argument is the verb, the second is the color, the third is the message.
Example
yaml
exporters:
custom:
after:
- run: echo {{ .Database | len }} works in the resulting database