Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946)

Fix #23703

When Gitea starts, it reads GITEA_RUNNER_REGISTRATION_TOKEN
or GITEA_RUNNER_REGISTRATION_TOKEN_FILE to add registration token.
This commit is contained in:
wxiaoguang authored and GitHub committed 2024-12-23 09:59:16 +00:00
1 parent bd5d1341d4
commit 7553ae1a57
8 files changed
+152 -18

No files matched your search

+1 -1
View File
@@ -171,7 +171,7 @@ func InitWebInstalled(ctx context.Context) {
auth.Init()
mustInit(svg.Init)
actions_service.Init()
mustInitCtx(ctx, actions_service.Init)
mustInit(repo_service.InitLicenseClassifier)