There was an error while loading. Please reload this page.
Use the pre_script input to run a local bash script inline over SSH before PullPreview runs the selected deployment target.
pre_script
This works for both deployment targets:
docker compose up
deployment_target: compose
deployment_target: helm
pre_script is resolved relative to app_path.
app_path
Before the script runs, PullPreview sources /etc/pullpreview/env, so your script can use values such as:
/etc/pullpreview/env
PULLPREVIEW_URL
PULLPREVIEW_PUBLIC_DNS
PULLPREVIEW_PUBLIC_IP
PULLPREVIEW_DEPLOYMENT_TARGET
PULLPREVIEW_NAMESPACE
PULLPREVIEW_RELEASE_NAME
PULLPREVIEW_FIRST_RUN
That makes pre_script useful for:
See also Environment variables.