Wraps python envtpl as drone plugin.
- name: injecting env into template
image: kexpress/drone-envtpl:1.1.0
settings:
template: template.j2
output_file: generated.txt
environment:
# template variables
BUILD_NUMBER: ${DRONE_BUILD_NUMBER}
TEMPLATE_TEXT: 'Hello world!'
template.j2:
This file generated using drone envtpl plugin during {{ BUILD_NUMBER }} build.
Here is injected message: {{TEMPLATE_TEXT }}
generated.txt
This file generated using drone envtpl plugin during 1337 build.
Here is injected message: Hello world!
- first release