You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs about how to generate config for act runner with docker and setup it with docker-compose (#25256)
In this pull request, the following changes are addressed:
- State user should create `config.yaml` before start container to avoid
errors.
- Provided instructions to deploy runners using docker compose.
Copy file name to clipboardExpand all lines: docs/content/doc/usage/actions/act-runner.en-us.md
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,12 @@ The default configuration is safe to use without any modification, so you can ju
76
76
./act_runner --config config.yaml [command]
77
77
```
78
78
79
+
You could also generate config file with docker:
80
+
81
+
```bash
82
+
docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-config > config.yaml
83
+
```
84
+
79
85
When you are using the docker image, you can specify the configuration file by using the `CONFIG_FILE` environment variable. Make sure that the file is mounted into the container as a volume:
80
86
81
87
```bash
@@ -172,6 +178,27 @@ It is because the act runner will run jobs in docker containers, so it needs to
172
178
As mentioned, you can remove it if you want to run jobs in the host directly.
173
179
To be clear, the "host" actually means the container which is running the act runner now, instead of the host machine.
174
180
181
+
### Set up the runner using docker compose
182
+
183
+
You could also set up the runner using the following `docker-compose.yml`:
0 commit comments