[CI] Only build release Docker images when NIGHTLY=1

Gate the "Build release Docker images" group, "Publish release images"
group, and ROCm release image build behind NIGHTLY=1 to avoid expensive
image builds on every commit in the release pipeline.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
khluu
2026-04-15 01:16:49 -07:00
co-authored by Claude Opus 4.6
parent 799973af4e
commit f44cddcfdd
+3
View File
@@ -100,6 +100,7 @@ steps:
- group: "Build release Docker images"
key: "build-release-images"
if: build.env("NIGHTLY") == "1"
steps:
- label: "Build release image - x86_64 - CUDA 12.9"
depends_on: ~
@@ -230,6 +231,7 @@ steps:
- group: "Publish release images"
key: "publish-release-images"
if: build.env("NIGHTLY") == "1"
steps:
- label: "Create multi-arch manifest - CUDA 12.9"
depends_on:
@@ -616,6 +618,7 @@ steps:
# ROCm Job 6: Build ROCm Release Docker Image
- label: ":docker: Build release image - x86_64 - ROCm"
id: build-rocm-release-image
if: build.env("NIGHTLY") == "1"
depends_on:
- step: build-rocm-base-wheels
allow_failure: false