Skip to content

Commit 582bde8

Browse files
committed
Azure self-hosted runners: stop using Azure CLI
The azure/cli action runs in a Docker container that only has a very limited subset of tools compared to the GitHub Actions runners. Luckily, the Azure CLI comes pre-installed with Hosted Runners. Let's use use it directly, so we can enjoy all the other tools that it offers. Signed-off-by: Dennis Ameling <[email protected]>
1 parent 117d8bd commit 582bde8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/create-azure-self-hosted-runners.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,4 @@ jobs:
183183

184184
- name: Deallocate the VM for later use
185185
if: env.DEALLOCATE_IMMEDIATELY == 'true'
186-
uses: azure/CLI@v2
187-
with:
188-
azcliversion: 2.64.0
189-
inlineScript: |
190-
az vm deallocate -n ${{ steps.generate-vm-name.outputs.vm_name }} -g ${{ secrets.AZURE_RESOURCE_GROUP }} --verbose
186+
run: az vm deallocate -n ${{ steps.generate-vm-name.outputs.vm_name }} -g ${{ secrets.AZURE_RESOURCE_GROUP }} --verbose

0 commit comments

Comments
 (0)