Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kazanexpress/drone-envtpl
envtpl wrapper plugin for drone
https://github.com/kazanexpress/drone-envtpl
cd ci drone drone-ci drone-plugin plugin
Last synced: about 2 months ago
JSON representation
envtpl wrapper plugin for drone
- Host: GitHub
- URL: https://github.com/kazanexpress/drone-envtpl
- Owner: KazanExpress
- Created: 2021-02-19T15:17:22.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-19T22:55:13.000Z (12 months ago)
- Last Synced: 2024-01-19T23:41:30.836Z (12 months ago)
- Topics: cd, ci, drone, drone-ci, drone-plugin, plugin
- Language: Go
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 29
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# envtpl plugin for drone
Wraps python [envtpl](https://github.com/andreasjansson/envtpl) as drone plugin.
## Usage
```yaml
- 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:
```jinja
This file generated using drone envtpl plugin during {{ BUILD_NUMBER }} build.
Here is injected message: {{TEMPLATE_TEXT }}
```generated.txt
```txt
This file generated using drone envtpl plugin during 1337 build.
Here is injected message: Hello world!
```## Release Notes
### 1.0
- first release