Preview uses a YAML configuration file located within your repository at
.preview/config.yamlin order to define how Preview behaves. A core tenant is that all of the configuration should live within the repository, rather than within the Preview application.
For many reasons, you may wish to build your images outside of Preview, and only have Preview manage the deployment.
You can disable image building by setting
build.enabled: Falsein your
When builds are disabled, Preview will go straight to the deployment step and make the following assumptions:
- Pushed images are accessible via a registry specified in the Docker Registries config
- Pushed images are tagged with the commit hash
- The repository addresses that you are pushing to are appropriately included in your values files.
We use links to your Preview Environments in numerous places, including our Dashboard, Github Pull Request Pages, and our CLI. By default, these URLs point to the root of the Environment hostname.
You can overwrite this by specifying the
deploy.defaultUrlin your configuration file. You can use the
PREVIEWHQ_HOSTNAMEtemplate value in order to formulate this. For example, if you want a
defaultUrlthat goes to your
appsubdomain, you can use: