Skip to content

Commit

Permalink
Add action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MM53 committed Mar 8, 2022
1 parent 453c44c commit b415610
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# template-renderer-action
Render template files.

Do not use this action on your own. [IONOS Deploy Now](https://ionos.space) will setup this for you.
37 changes: 37 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'DeployNow template rendering'
description: 'Fill templates of configuration files before deployment based on the golang template engine'
inputs:
template-directory:
description: 'The directory to search for template files'
required: false
default: '.deploy-now'
template-extension:
description: 'The file extension which identifies template files'
required: false
default: '.template'
output-directory:
description: 'The directory where the processed templates will be written to'
required: false
default: './'
secrets:
description: 'Data to use for rendering templates as yaml or json objects'
required: true
outputs:
used_runtime_values:
description: 'Used runtime values to replace them with another template engine later'
runs:
using: 'docker'
image: 'docker://ghcr.io/ionos-deploy-now/template-renderer:v1.0.0'
args:
- '--template-dir'
- ${{ inputs.template-directory }}
- '--template-extension'
- ${{ inputs.template-extension }}
- '--output-dir'
- ${{ inputs.output-directory }}
- '--secrets'
- ${{ inputs.secrets }}
- '--runtime'
- '{"db": {"user": "$DB_USER", "password": "$DB_PASSWORD", "url": "$DB_URL"}}'
- '--copy-permissions'
- '--output-runtime'

0 comments on commit b415610

Please sign in to comment.