如何修复 Gitea act_runner Docker 错误:Invalid input, please re-run act command: token is empty
问题
启动 Gitea act_runner docker 容器时,你反复看到以下错误消息
gitea_act_runner_error.txt
level=error msg="Invalid input, please re-run act command." error="token is empty"解决方案
在你的 docker-compose.yml 中,你需要设置以下环境变量以允许 runner 注册:
docker-compose.yml
services:
runner:
# [...]
environment:
GITEA_INSTANCE_URL: https://gitea.my-domain.com
GITEA_RUNNER_REGISTRATION_TOKEN: n73HEsTX71NMoVFJoMVSCEpin2IeihDnJZHELnNs
GITEA_RUNNER_NAME: myrunner之后,重启 docker-compose 服务。
Check out similar posts by category:
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow