Skip to content

Environment variables

Cyril Rohr edited this page Mar 13, 2026 · 2 revisions

PullPreview writes the following environment variables to /etc/pullpreview/env on the preview instance and uses them during deployment:

  • PULLPREVIEW_PUBLIC_DNS: generated public DNS name for the preview
  • PULLPREVIEW_PUBLIC_IP: public IP address of the preview instance
  • PULLPREVIEW_URL: full preview URL, including scheme and port
  • PULLPREVIEW_FIRST_RUN: true on the first deployment to an instance, otherwise false
  • PULLPREVIEW_DEPLOYMENT_TARGET: compose or helm
  • PULLPREVIEW_NAMESPACE: Kubernetes namespace for Helm previews
  • PULLPREVIEW_RELEASE_NAME: Helm release name for Helm previews (app)
  • COMPOSE_FILE: colon-separated Compose file list for Compose previews; empty for Helm previews

These values are available to:

  • pre_script
  • Compose environment interpolation
  • Helm placeholder expansion in chart_set and proxy_tls

Clone this wiki locally