How to setup porter.yaml Configuration Files
Last updated: February 9, 2026
Set up porter.yaml
Create a
porter.yamlfile in your repository. You are not restricted to this exact name - you can use any custom name for your configuration file. For multiple environments, you might create separate files like:
porter.prod.yamlporter.staging.yamlporter.preview.yaml
Reference your configuration file in your GitHub workflow file by adding
-f /path/to/your-file.yamlto the end of the line withexec porter apply. If you use a custom name, ensure to reference it explicitly with the correct path. The configuration in this file will take precedence over dashboard settings.Ensure your
porter.yamlfile contains a complete configuration for your application, as partial configurations are not currently supported.
Usage
When using porter.yaml files:
Any changes pushed to the
porter.yamlfile will automatically update your application configuration when deployments occur.The
porter.yamlfile acts as the source of truth for your application configuration when referenced in your GitHub workflow.While you can make changes in the dashboard, the
porter.yamlconfiguration will always take precedence during deployments.If you prefer to manage configuration through the dashboard instead, you can remove the
porter.yamlreference from your GitHub workflow file.