-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |