diff --git a/CloudController.cs b/CloudController.cs index 51408f0..11c3769 100644 --- a/CloudController.cs +++ b/CloudController.cs @@ -84,7 +84,7 @@ public async Task 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);