Skip to content

jfm-technology/render-config-templates-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Render Config Templates Action

This action processes files with a specified file extension as Jinja2 templates.

Variables used come from the (JSON encoded) vars argument (see below for example usages).

Inputs

relative-working-directory

Directory to search for template files (relative to workspace dir). Defaults to "."

template-extension

File extension to use as templates. Files will be processed as templates and the result is stored as the template filename minus the extension. Defaults to "production"

remove-templates

Remove template files as soon as they habe been processed? Default is false.

vars

Required JSON encoded map of variables for the Jinja2 engine.

Outputs

None

Example usage

uses: jfm-technology/render-config-templates-action@master
with:
  template-extension: production
  remove-templates: true
  vars: '{"github":${{ toJson(github) }},"vars":${{ toJson(vars) }}}'

About

Jinja2 templating with Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.4%
  • Dockerfile 19.9%
  • Shell 16.7%