Skip to content

Commit 4ed9694

Browse files
authored
feat: rename organization_url to runner_url
1 parent 51bdafe commit 4ed9694

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.env

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# Runners settings
2+
# ex. org: https://github.com/<org name>/staging-monorepo or repo: https://github.com/<org name>/<repo name>
13
PAT=<Replace with your personal access token>
2-
ORGANIZATION_URL=<Organization url>
4+
RUNNER_URL=<org url or repo url>
35
RUNNERS=2
46
# Vagrant image settings
57
MEMORY=8000 # 8GB

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ A implementation of windows github custom runner (x64) based on vagrant VM, libv
99
# Deployment Guide
1010

1111
1. Create/Update the environmental file `.env`
12-
- Organization URL
12+
- Runner URL
1313
- PAT: Personal access token
1414
```
1515
PAT=<Replace with your personal access token>
16-
ORGANIZATION_URL=<Organization url>
16+
RUNNER_URL=<runner url>
1717
RUNNERS=1
1818
# Vagrant image settings
1919
MEMORY=8000 # 8GB

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Vagrant.configure("2") do |config|
4343
Write-Host "Running $runner";
4444
$random = -join ((48..57) + (97..122) | Get-Random -Count 8 | % {[char]$_});
4545
Expand-Archive -LiteralPath ${GITHUB_RUNNER_FILE} -DestinationPath runner-$random -Force;
46-
Invoke-Expression -Command "C:\\runner-$random\\config.cmd --name ${GITHUB_RUNNER_NAME}_$random --replace --unattended --url ${ORGANIZATION_URL} --labels ${GITHUB_RUNNER_LABELS} --pat ${PAT}";
46+
Invoke-Expression -Command "C:\\runner-$random\\config.cmd --name ${GITHUB_RUNNER_NAME}_$random --replace --unattended --url ${RUNNER_URL} --labels ${GITHUB_RUNNER_LABELS} --pat ${PAT}";
4747
Start-Process "C:\\runner-$random\\run.cmd" -Credential ($credentials);
4848
}
4949
SHELL

startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export RANDOM_STR=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n
88
if [ ! -f Vagrantfile ]
99
then
1010
envsubst \
11-
'${VAGRANT_BOX},${PRIVILEGED},${INTERACTIVE},${MEMORY},${CPU},${DISK_SIZE},${GITHUB_RUNNER_FILE},${GITHUB_RUNNER_NAME},${RANDOM_STR},${RUNNERS},${GITHUB_RUNNER_LABELS},${ORGANIZATION_URL},${PAT},${GITHUB_RUNNER_URL}' \
11+
'${VAGRANT_BOX},${PRIVILEGED},${INTERACTIVE},${MEMORY},${CPU},${DISK_SIZE},${GITHUB_RUNNER_FILE},${GITHUB_RUNNER_NAME},${RANDOM_STR},${RUNNERS},${GITHUB_RUNNER_LABELS},${RUNNER_URL},${PAT},${GITHUB_RUNNER_URL}' \
1212
< Vagrantfile.tmp > Vagrantfile
1313
fi
1414

0 commit comments

Comments
 (0)