Skip to content

KazanExpress/drone-envtpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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