add start runner
This commit is contained in:
parent
e1cae5872e
commit
20ce175ee5
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,3 +3,5 @@
|
||||
################################################################################
|
||||
|
||||
/.vs
|
||||
images/github-runner/.env
|
||||
images/privoxy/privoxy.conf.save
|
||||
|
6
images/github-runner/.env.example
Normal file
6
images/github-runner/.env.example
Normal file
@ -0,0 +1,6 @@
|
||||
RUNNER_NAME=pd-gh-runner
|
||||
GITHUB_PERSONAL_TOKEN=<personal token>
|
||||
GITHUB_OWNER=<owner>
|
||||
GITHUB_REPOSITORY=<repository-name>
|
||||
RUNNER_LABELS=<label>
|
||||
ALLOWEDAUTHORSLIST=<list of allowes users comma separated>
|
17
images/github-runner/start-runner.sh
Executable file
17
images/github-runner/start-runner.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
docker run --runtime=sysbox-runc --name=gh-runner -ti --rm \
|
||||
--env-file=.env \
|
||||
-v ~/docker-inner/:/var/lib/docker/ \
|
||||
-v /storage/images:/storage/images \
|
||||
-v /tmp/forward-proxy:/tmp/forward-proxy \
|
||||
-v /tmp/proxy:/tmp/proxy \
|
||||
--network none \
|
||||
uazo/github-runner
|
||||
|
||||
sleep 5s
|
||||
|
||||
done
|
Loading…
Reference in New Issue
Block a user