bythepixel/Environment Variable Replacement
Generate a new environment file with secrets replaced from a template file
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| secrets | The json glob of all secrets to use in the replacement | yes | — |
| environment-name | The environment to replace variables for | yes | — |
| env-file-path | Path to the final environment file to generate. This may be the same as the template file path. | yes | — |
| template-file-path | Optional explicit path to the template file. Overrides the <env-file-path>.<environment-name> convention. Use for files that do not follow that naming, e.g. appsettings.Production.json. | no | — |
| delete-template | Whether to delete the template file after writing the output. Defaults to true so that e.g. .env.production is not left alongside .env. | no | true |
| additional-variables | A json glob of additional variables to use in the replacement | no | {} |
Outputs
no outputs