Skip to content

Commit

Permalink
add long label to runners
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Apr 16, 2024
1 parent 1042867 commit b76715e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CloudController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public async Task<string> CreateNewRunner(string arch, string size, string runne
.AppendLine(" - [ sh, -xc, 'sh /opt/install-docker.sh']")
.AppendLine(" - [ sh, -xc, 'mkdir -p /opt/actions-runner']")
.AppendLine($" - [ sh, -xc, 'cd /opt/actions-runner && curl -o actions-runner-linux.tar.gz -L https://github.com/actions/runner/releases/download/v{runnerVersion}/actions-runner-linux-{arch}-{runnerVersion}.tar.gz && tar xzf ./actions-runner-linux.tar.gz']")
.AppendLine($" - [ sh, -xc, 'cd /opt/actions-runner && RUNNER_ALLOW_RUNASROOT=true ./config.sh --url https://github.com/{orgName} --token {runnerToken} --ephemeral --disableupdate --labels {size} && RUNNER_ALLOW_RUNASROOT=true ./run.sh ']")
.AppendLine($" - [ sh, -xc, 'cd /opt/actions-runner && RUNNER_ALLOW_RUNASROOT=true ./config.sh --url https://github.com/{orgName} --token {runnerToken} --ephemeral --disableupdate --labels {size},self-hosted-{size} && RUNNER_ALLOW_RUNASROOT=true ./run.sh ']")
.ToString();
_logger.LogInformation($"Launching VM {name}");
var newSrv = await _client.Server.Create(eDataCenter.nbg1, imageId.Value, name, srvType.Value, userData: cloudInitcontent, sshKeysIds: srvKeys);
Expand Down

0 comments on commit b76715e

Please sign in to comment.