diff options
author | Thomas McWork <thomas.mc.work@posteo.de> | 2023-08-23 14:43:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 07:43:05 -0500 |
commit | 083b0b4770b275a8ff4eb4114dd9997863a24950 (patch) | |
tree | e6f73794b7dc7d96e5c8c4896f29c0a42e71bb40 /docs/content/usage | |
parent | 9c5c60143975a120bf70ac4aed34bf903ef19db6 (diff) | |
download | gitea-083b0b4770b275a8ff4eb4114dd9997863a24950.tar.gz gitea-083b0b4770b275a8ff4eb4114dd9997863a24950.zip |
Prefer variables over subprocesses (#26690)
… because it doesn't require a separate shell, spawning a process which
cost unnecessary resources and takes time.
Diffstat (limited to 'docs/content/usage')
-rw-r--r-- | docs/content/usage/actions/act-runner.en-us.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/usage/actions/act-runner.en-us.md b/docs/content/usage/actions/act-runner.en-us.md index 1be81c5c78..e2915be365 100644 --- a/docs/content/usage/actions/act-runner.en-us.md +++ b/docs/content/usage/actions/act-runner.en-us.md @@ -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. @@ -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> \ |