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:

  1. Maintain a separate porter.yaml files for each environment

  2. Create a shell script that generates or modifies the porter.yaml file with the appropriate values before deployment