add start runner

This commit is contained in:
uazo 2021-07-31 12:22:32 +00:00
parent e1cae5872e
commit 20ce175ee5
3 changed files with 25 additions and 0 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@
################################################################################
/.vs
images/github-runner/.env
images/privoxy/privoxy.conf.save

View 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>

View 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