This repository was archived by the owner on Jan 16, 2025. It is now read-only.
File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -80,14 +80,19 @@ GitHub workflows fail immediately if there is no action runner available for you
80
80
81
81
Another convenient way of deploying this temporary required runner is using following approach. This automates all the manual labor.
82
82
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 >
91
96
92
97
You should stop and remove the container once the runner is registered as the builds would otherwise go to your local Docker container.
93
98
You can’t perform that action at this time.
0 commit comments