Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 714 Bytes

readme.md

File metadata and controls

37 lines (27 loc) · 714 Bytes

envtpl plugin for drone

Wraps python envtpl as drone plugin.

Usage

- 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!

Release Notes

1.0

  • first release