Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self hosted runner: update image and make configurable through env vars #60

Merged
merged 2 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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