Skip to content

Commit

Permalink
Azure self-hosted runners: stop using Azure CLI
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dennisameling committed Oct 3, 2024
1 parent 117d8bd commit 582bde8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/create-azure-self-hosted-runners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,4 @@ jobs:

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

0 comments on commit 582bde8

Please sign in to comment.