Update README.md

Add a  local prod example
This commit is contained in:
esinio 2025-02-13 12:31:57 +08:00 committed by GitHub
parent 64336b1c23
commit 264f9333aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,4 +13,18 @@ docker run -itd \
--name gitea_runner \
gitea/act_runner:latest
```
```
``` shell
docker run \
-v $PWD/config.yaml:/config.yaml \
-v $PWD/data:/data \
-v $PWD/cache:/root/.cache \
-v /var/run/docker.sock:/var/run/docker.sock \
-e CONFIG_FILE=/config.yaml \
-e GITEA_INSTANCE_URL=https://gitea.example.com/ \
-e GITEA_RUNNER_REGISTRATION_TOKEN=mytoken \
-e GITEA_RUNNER_NAME=local-cached \
-p 18000:18000 \
-d gitea/act_runner:nightly
```