|
39 | 39 | default: "ccw" |
40 | 40 | type: string |
41 | 41 | workspace_ref: |
42 | | - description: "Git ref (branch/tag) to checkout" |
| 42 | + description: "Git ref (branch/tag) to checkout (defaults to latest release)" |
43 | 43 | required: false |
44 | | - default: "2025.12.01" |
45 | 44 | type: string |
46 | 45 | htc_max_nodes: |
47 | 46 | description: "Maximum nodes for HTC partition" |
@@ -193,13 +192,16 @@ jobs: |
193 | 192 | --scheduler-sku "$SCHEDULER_SKU" |
194 | 193 | --login-sku "$LOGIN_SKU" |
195 | 194 | --cluster-name "$CLUSTER_NAME" |
196 | | - --workspace-ref "$WORKSPACE_REF" |
197 | 195 | --htc-max-nodes "$HTC_MAX" |
198 | 196 | --hpc-max-nodes "$HPC_MAX" |
199 | 197 | --gpu-max-nodes "$GPU_MAX" |
200 | 198 | --bastion --accept-marketplace --no-az --silent |
201 | 199 | ) |
202 | 200 |
|
| 201 | + if [ -n "${WORKSPACE_REF}" ]; then |
| 202 | + cmd+=(--workspace-ref "$WORKSPACE_REF") |
| 203 | + fi |
| 204 | +
|
203 | 205 | if [ -n "${IMAGE}" ]; then |
204 | 206 | cmd+=(--htc-image "$IMAGE") |
205 | 207 | cmd+=(--hpc-image "$IMAGE") |
@@ -247,12 +249,14 @@ jobs: |
247 | 249 | --admin-username "hpcadmin" |
248 | 250 | --scheduler-sku "${{ inputs.scheduler_sku }}" |
249 | 251 | --login-sku "${{ inputs.login_sku }}" |
250 | | - --workspace-ref "${{ inputs.workspace_ref }}" |
251 | 252 | --htc-max-nodes "${{ inputs.htc_max_nodes }}" |
252 | 253 | --hpc-max-nodes "${{ inputs.hpc_max_nodes }}" |
253 | 254 | --gpu-max-nodes "${{ inputs.gpu_max_nodes }}" |
254 | 255 | --bastion --accept-marketplace --no-az --silent |
255 | 256 | ) |
| 257 | + if [ -n "${{ inputs.workspace_ref }}" ]; then |
| 258 | + args+=(--workspace-ref "${{ inputs.workspace_ref }}") |
| 259 | + fi |
256 | 260 | if [ -n "${{ inputs.image }}" ]; then |
257 | 261 | args+=(--htc-image "${{ inputs.image }}") |
258 | 262 | args+=(--hpc-image "${{ inputs.image }}") |
|
0 commit comments