Skip to content

Commit efa2a22

Browse files
committed
docs: Use collapsible example for temporary runner
1 parent d27b8ff commit efa2a22

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,19 @@ GitHub workflows fail immediately if there is no action runner available for you
8080

8181
Another convenient way of deploying this temporary required runner is using following approach. This automates all the manual labor.
8282

83-
```bash
84-
docker run -it --name my-runner \
85-
-e RUNNER_LABELS=selfhosted,Linux,Ubuntu -e RUNNER_NAME=my-repo-docker-runner \
86-
-e GITHUB_ACCESS_TOKEN=$GH_PERSONAL_ACCESS_TOKEN \
87-
-e RUNNER_REPOSITORY_URL=https://github.com/my-org/my-repo \
88-
-v /var/run/docker.sock:/var/run/docker.sock \
89-
tcardonne/github-runner:ubuntu-20.04
90-
```
83+
<details>
84+
<summary>Temporary runner using Docker</summary>
85+
86+
```bash
87+
docker run -it --name my-runner \
88+
-e RUNNER_LABELS=selfhosted,Linux,Ubuntu -e RUNNER_NAME=my-repo-docker-runner \
89+
-e GITHUB_ACCESS_TOKEN=$GH_PERSONAL_ACCESS_TOKEN \
90+
-e RUNNER_REPOSITORY_URL=https://github.com/my-org/my-repo \
91+
-v /var/run/docker.sock:/var/run/docker.sock \
92+
tcardonne/github-runner:ubuntu-20.04
93+
```
94+
95+
</details>
9196

9297
You should stop and remove the container once the runner is registered as the builds would otherwise go to your local Docker container.
9398

0 commit comments

Comments
 (0)