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

Commit 9d36cef

Browse files
marcofranssennpalm
authored andcommitted
docs: Use collapsible example for temporary runner
1 parent 8539643 commit 9d36cef

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

Diff for: README.md

+13-8
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)