Can I use environment variables in porter.yaml?
Last updated: April 28, 2025
The porter.yaml configuration file does not currently support environment variable substitution or templating. Values in the file must be hardcoded.
Workaround for Multiple Environments
If you need to deploy the same application to multiple environments (e.g., staging and production), you have two options:
Maintain a separate
porter.yamlfiles for each environmentCreate a shell script that generates or modifies the
porter.yamlfile with the appropriate values before deployment