From 316943cc7f366d69f226ff2de145daf3c438b72c Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Sat, 26 Oct 2024 16:27:10 +0000 Subject: [PATCH] Use --no-default-labels on Windows as well We forgot to pass the --no-default-labels to the Windows runners. Signed-off-by: Gabriel Adrian Samfira --- cloudconfig/templates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudconfig/templates.go b/cloudconfig/templates.go index 277e4a9..05687c5 100644 --- a/cloudconfig/templates.go +++ b/cloudconfig/templates.go @@ -538,9 +538,9 @@ function Install-Runner() { Invoke-WebRequest -UseBasicParsing -Headers @{"Accept"="application/json"; "Authorization"="Bearer $Token"} -Uri $MetadataURL/runner-registration-token/ } -MaxRetryCount 5 -RetryInterval 5 -RetryMessage "Retrying download of GitHub registration token..." {{- if .GitHubRunnerGroup }} - ./config.cmd --unattended --url "{{ .RepoURL }}" --token $GithubRegistrationToken --runnergroup {{.GitHubRunnerGroup}} --name "{{ .RunnerName }}" --labels "{{ .RunnerLabels }}" --ephemeral --runasservice + ./config.cmd --unattended --url "{{ .RepoURL }}" --token $GithubRegistrationToken --runnergroup {{.GitHubRunnerGroup}} --name "{{ .RunnerName }}" --labels "{{ .RunnerLabels }}" --no-default-labels --ephemeral --runasservice {{- else}} - ./config.cmd --unattended --url "{{ .RepoURL }}" --token $GithubRegistrationToken --name "{{ .RunnerName }}" --labels "{{ .RunnerLabels }}" --ephemeral --runasservice + ./config.cmd --unattended --url "{{ .RepoURL }}" --token $GithubRegistrationToken --name "{{ .RunnerName }}" --labels "{{ .RunnerLabels }}" --no-default-labels --ephemeral --runasservice {{- end}} $agentInfoFile = Join-Path $runnerDir ".runner"