Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
#33: [BC] Move templates directory to root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Mar 7, 2021
1 parent 63d8fcf commit f6b47b7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/rkd_harbor/__init__.py
Expand Up @@ -113,7 +113,7 @@ def imports():
TaskAliasDeclaration(':harbor:templates:render',
[
':j2:directory-to-directory',
'--source=containers/templates',
'--source=templates',
'--target=./'
],
description='Render templates stored in containers/templates ' +
Expand Down
15 changes: 15 additions & 0 deletions src/rkd_harbor/project/templates/README.md
@@ -0,0 +1,15 @@
Templates
=========

Files in this directory will be rendered into project root directory, preserving the directories structure.

Example
-------

`templates/containers/nginx/nginx.conf.j2` -> `containers/nginx/nginx.conf`

Use case
--------

- Prepare configuration files and scripts on-the-fly
- Inject passwords from .env (so the files will not keep unencrypted secrets in the repository)

0 comments on commit f6b47b7

Please sign in to comment.