Skip to content

Commit

Permalink
Update README from #7
Browse files Browse the repository at this point in the history
  • Loading branch information
myoung34 committed Feb 12, 2020
1 parent f7405e5 commit 2f3b19d
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ This has been tested and verified on:
Manual:

```
docker run -it \
-e REPO_URL="https://github.com/myoung34/LEDSpicer" \
docker run -d --restart always --name github-runner \
-e REPO_URL="https://github.com/myoung34/repo" \
-e RUNNER_NAME="foo-runner" \
-e RUNNER_TOKEN="footoken" \
-e RUNNER_WORKDIR="/tmp/github-runner" \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp/github-runner:/tmp/github-runner \
myoung34/github-runner:latest
```

Expand All @@ -35,7 +38,9 @@ function github-runner {
-e REPO_URL="https://github.com/${org}/${repo}" \
-e RUNNER_TOKEN="$2" \
-e RUNNER_NAME="linux-${repo}" \
-e RUNNER_WORKDIR="/tmp/github-runner" \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp/github-runner:/tmp/github-runner \
--name $name ${org}/github-runner:${tag}
}
Expand All @@ -55,14 +60,16 @@ job "github_runner" {
env {
REPO_URL = "https://github.com/your-account/your-repo"
RUNNER_TOKEN = "footoken"
RUNNER_TOKEN = "footoken"
RUNNER_WORKDIR = "/tmp/github-runner"
}
config {
privileged = true
image = "myoung34/github-runner:latest"
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"/var/run/docker.sock:/var/run/docker.sock",
"/tmp/github-runner:/tmp/github-runner",
]
}
}
Expand Down Expand Up @@ -91,6 +98,10 @@ spec:
- name: dockersock
hostPath:
path: /var/run/docker.sock
- name: workdir
hostPath:
path: /tmp/github-runner
containers:
containers:
- name: runner
image: myoung34/github-runner:latest
Expand All @@ -99,9 +110,13 @@ spec:
value: footoken
- name: REPO_URL
value: https://github.com/your-account/your-repo
- name: RUNNER_WORKDIR
value: /tmp/github-runner
volumeMounts:
- name: dockersock
mountPath: /var/run/docker.sock
- name: workdir
mountPath: /tmp/github-runner
```

## Usage From GH Actions Workflow ##
Expand Down

0 comments on commit 2f3b19d

Please sign in to comment.