Skip to content

Commit 027d7e3

Browse files
committed
self-hosted runner: only create a single runner
It's not like we want to create tens of runners at the same time. One is sufficient. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7774f51 commit 027d7e3

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

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

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ name: create-azure-self-hosted-runners
33
on:
44
workflow_dispatch:
55
inputs:
6-
amount_of_runners:
7-
description: 'Amount of runners to set up'
8-
required: true
9-
default: 1
106
runner_scope:
117
type: choice
128
required: true
@@ -30,7 +26,6 @@ on:
3026
default: false
3127

3228
env:
33-
AMOUNT_OF_RUNNERS: ${{ github.event.inputs.amount_of_runners }}
3429
ACTIONS_RUNNER_SCOPE: ${{ github.event.inputs.runner_scope }}
3530
ACTIONS_RUNNER_ORG: "${{ github.event.inputs.runner_org || github.repository_owner }}"
3631
ACTIONS_RUNNER_REPO: "${{ github.event.inputs.runner_repo || github.event.repository.name }}"
@@ -53,24 +48,8 @@ env:
5348
# AZURE_VM_USERNAME - Username of the VM so you can RDP into it
5449
# AZURE_VM_PASSWORD - Password of the VM so you can RDP into it
5550
jobs:
56-
create-matrix:
57-
runs-on: ubuntu-latest
58-
outputs:
59-
matrix: ${{ steps.create-matrix.outputs.matrix }}
60-
steps:
61-
- name: Create matrix for setting up runners in parallel
62-
id: create-matrix
63-
run: |
64-
echo "Going to create $AMOUNT_OF_RUNNERS runners"
65-
MATRIX="matrix={\"runner_index\":[$(seq -s "," 1 $AMOUNT_OF_RUNNERS)]}"
66-
echo "Going to use this matrix: $MATRIX"
67-
echo $MATRIX >> $GITHUB_OUTPUT
68-
create-runners:
69-
name: create-runner-${{ matrix.runner_index }}
70-
needs: create-matrix
51+
create-runner:
7152
runs-on: ubuntu-latest
72-
strategy:
73-
matrix: ${{ fromJSON(needs.create-matrix.outputs.matrix) }}
7453
outputs:
7554
vm_name: ${{ steps.generate-vm-name.outputs.vm_name }}
7655
steps:

0 commit comments

Comments
 (0)