Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit d2cba72

Browse files
committed
Add Dockerfile for linux github runner agent
1 parent d3d7d3d commit d2cba72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/runners/runner.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
.\actions-runner\config.cmd --unattended --replace --url https://github.com/${env:RUNNER_REPO} --token $env:RUNNER_TOKEN --runnergroup $env:RUNNER_GROUP --labels $env:RUNNER_LABEL --name $env:RUNNER_NAME --work $env:RUNNER_WORKDIR;
1+
.\actions-runner\config.cmd --unattended --replace --url https://github.com/${env:RUNNER_REPO} --pat $env:RUNNER_PAT --runnergroup $env:RUNNER_GROUP --labels $env:RUNNER_LABELS --name $env:RUNNER_NAME --work $env:RUNNER_WORKDIR;
22
.\actions-runner\run.cmd;

.github/runners/start.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#!/bin/bash
22

33
RUNNER_REPO=$RUNNER_REPO
4-
RUNNER_TOKEN=$RUNNER_TOKEN
4+
RUNNER_PAT=$RUNNER_PAT
55
RUNNER_GROUP=$RUNNER_GROUP
66
RUNNER_LABELS=$RUNNER_LABELS
77
RUNNER_NAME=$RUNNER_NAME
88

99
cd /home/runner/actions-runner
1010

11-
./config.sh --unattended --url https://github.com/${RUNNER_REPO} --token ${RUNNER_TOKEN} --name ${RUNNER_NAME} --runnergroup ${RUNNER_GROUP} --labels ${RUNNER_LABELS} --work /home/runner/actions-runner/_work
11+
./config.sh --unattended --replace --url https://github.com/${RUNNER_REPO} --pat ${RUNNER_PAT} --name ${RUNNER_NAME} --runnergroup ${RUNNER_GROUP} --labels ${RUNNER_LABELS} --work /home/runner/actions-runner/_work
1212

1313
cleanup() {
1414
echo "Removing runner..."
15-
./config.sh remove --unattended --token ${RUNNER_TOKEN}
15+
./config.sh remove --unattended --pat ${RUNNER_PAT}
1616
}
1717

1818
trap 'cleanup; exit 130' INT

0 commit comments

Comments
 (0)