Skip to main content

zCloud Environment Variables

Within your running container on zCloud, certain environment variables are accessible.

If additional information about your running containers is needed, feel free to contact us.

Version Information

  • ZCLOUD_IMAGE_VERSION: This value increases by 1 for each build, represented as v1, v2, v3, and so forth.
  • ZCLOUD_DEPLOYMENT_VERSION: This increments by 1 for each new deployment. It resets to 1 for each new image.

For instance, with the first image build, you'll see: Image: v1, Deployment: v1. After a change and redeployment of the same image, it will display: Image: v1, Deployment: v2.

Building a new image will yield: Image: v2, Deployment: v1. The deployment counter resets to v1 for each new image.

Most likely, your primary concern will be ZCLOUD_IMAGE_VERSION.

Container Information

  • HOSTNAME: This represents the full name of the container. For example, wa-app-prod-7c9bf96bcc-grbcl, where wa stands for web application, app refers to the app name (or slug) within zCloud, prod indicates the environment name (or slug) in zCloud, 7c9bf96bcc signifies the image hash, and grbcl denotes the pod name in Kubernetes.