Skip to content

Commit 2440131

Browse files
committed
update clone instructions
1 parent 19f9683 commit 2440131

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/cyclecloud/how-to/ccws/deploy-with-cli.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: How to deploy a CycleCloud Workspace for Slurm environment using the CLI
33
description: How to deploy a CycleCloud Workspace for Slurm environment using the Azure CLI and the Azure Portal UI Sandbox
44
author: xpillons
5-
ms.date: 08/22/2024
5+
ms.date: 01/29/2025
66
ms.author: xpillons
77
---
88

@@ -13,7 +13,9 @@ Prerequisites: Users will need to install the Azure CLI and Git. They will then
1313
- Clone the Azure CycleCloud Workspace for Slurm on the latest stable release
1414

1515
```bash
16-
git clone https://github.com/Azure/cyclecloud-slurm-workspace.git --branch <release>
16+
latest=$(curl -s https://api.github.com/repos/azure/cyclecloud-slurm-workspace/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
17+
echo "cloning on $latest"
18+
git clone --depth 1 --branch $latest https://github.com/azure/cyclecloud-slurm-workspace.git
1719
```
1820

1921
- Copy the content of the UI definition file `./uidefinitions/createUiDefinition.json`

0 commit comments

Comments
 (0)