Skip to content

Commit

Permalink
Prefer variables over subprocesses (#26690)
Browse files Browse the repository at this point in the history
… because it doesn't require a separate shell, spawning a process which
cost unnecessary resources and takes time.
  • Loading branch information
thomas-mc-work authored Aug 23, 2023
1 parent 9c5c601 commit 083b0b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/content/usage/actions/act-runner.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-
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:

```bash
docker run -v $(pwd)/config.yaml:/config.yaml -e CONFIG_FILE=/config.yaml ...
docker run -v $PWD/config.yaml:/config.yaml -e CONFIG_FILE=/config.yaml ...
```

You may notice the commands above are both incomplete, because it is not the time to run the act runner yet.
Expand Down Expand Up @@ -157,8 +157,8 @@ If you are using the docker image, behaviour will be slightly different. Registr

```bash
docker run \
-v $(pwd)/config.yaml:/config.yaml \
-v $(pwd)/data:/data \
-v $PWD/config.yaml:/config.yaml \
-v $PWD/data:/data \
-v /var/run/docker.sock:/var/run/docker.sock \
-e CONFIG_FILE=/config.yaml \
-e GITEA_INSTANCE_URL=<instance_url> \
Expand Down

0 comments on commit 083b0b4

Please sign in to comment.