class_docstr: Container for building and publishing ray docker images
class_docstr_tok: ["Container","for","building","and","publishing","ray","docker","images"]
code: def _should_upload(self) -> bool:
      return (
          os.environ.get("BUILDKITE_PIPELINE_ID") == POSTMERGE_PIPELINE
          and self.upload
      )
  
file_path: ray/ci/ray_ci/ray_docker_container.py
imports: import os
  from typing import List
  from ci.ray_ci.container import _DOCKER_ECR_REPO
  from ci.ray_ci.docker_container import DockerContainer
  from ci.ray_ci.builder_container import PYTHON_VERSIONS, DEFAULT_ARCHITECTURE
  from ci.ray_ci.utils import docker_pull, RAY_VERSION, POSTMERGE_PIPELINE
label_desc: Use image node_id 2 for calling the RayDockerContainer obj's underlying member method code with example usage: obj._should_upload() and returns: unknown