Skip to content

Commit

Permalink
Merge pull request #60 from git-for-windows/self-hosted-runner-improv…
Browse files Browse the repository at this point in the history
…ements

Self hosted runner: update image and make configurable through env vars
  • Loading branch information
dscho authored Apr 14, 2024
2 parents 8def9c6 + db516f6 commit 3c005ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/create-azure-self-hosted-runners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ env:
# For more information, see https://learn.microsoft.com/en-us/azure/virtual-machines/dplsv5-dpldsv5-series (which
# unfortunately does not have more information about price by region)
AZURE_VM_REGION: westus2
AZURE_VM_IMAGE: win11-23h2-ent

# The following secrets are required for this workflow to run:
# AZURE_CREDENTIALS - Credentials for the Azure CLI. It's recommended to set up a resource
Expand Down Expand Up @@ -130,6 +131,7 @@ jobs:
githubActionsRunnerRegistrationUrl="$ACTIONS_RUNNER_REGISTRATION_URL"
githubActionsRunnerToken="$ACTIONS_RUNNER_TOKEN"
postDeploymentPsScriptUrl="$POST_DEPLOYMENT_SCRIPT_URL"
virtualMachineImage="$AZURE_VM_IMAGE"
virtualMachineName="${{ steps.generate-vm-name.outputs.vm_name }}"
virtualMachineSize="$AZURE_VM_TYPE"
publicIpAddressName1="${{ steps.generate-vm-name.outputs.vm_name }}-ip"
Expand Down
5 changes: 4 additions & 1 deletion azure-self-hosted-runners/azure-arm-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
"osDiskDeleteOption": {
"type": "string"
},
"virtualMachineImage": {
"type": "string"
},
"virtualMachineSize": {
"type": "string"
},
Expand Down Expand Up @@ -209,7 +212,7 @@
"imageReference": {
"publisher": "microsoftwindowsdesktop",
"offer": "windows11preview-arm64",
"sku": "win11-22h2-ent",
"sku": "[parameters('virtualMachineImage')]",
"version": "latest"
}
},
Expand Down

0 comments on commit 3c005ee

Please sign in to comment.