Allow specifying action runner tokens of the gitea server using environment variables #13803

Closed
opened 2025-11-02 10:53:39 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @ElSamhaa on GitHub (Dec 10, 2024).

Feature Description

I want to automate the bootstrapping of the gitea server and the registration of runners without manual steps. In my docker compose env, I'll need to either get the token manually from the web UI or the command line before passing it to the runner to register it. This feature should allow the pre-setting of runner token so that it can be specified on both the server and runners automatically.

Screenshots

No response

Originally created by @ElSamhaa on GitHub (Dec 10, 2024). ### Feature Description I want to automate the bootstrapping of the gitea server and the registration of runners without manual steps. In my docker compose env, I'll need to either get the token manually from the web UI or the command line before passing it to the runner to register it. This feature should allow the pre-setting of runner token so that it can be specified on both the server and runners automatically. ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 10:53:39 -06:00
Author
Owner

@yp05327 commented on GitHub (Dec 10, 2024):

You said you are using docker compose, so I suggest to see https://github.com/TeaChart/gitea/tree/main/templates/scripts/runner
Hope this approach can help you.

@yp05327 commented on GitHub (Dec 10, 2024): You said you are using docker compose, so I suggest to see https://github.com/TeaChart/gitea/tree/main/templates/scripts/runner Hope this approach can help you.
Author
Owner

@yp05327 commented on GitHub (Jan 9, 2025):

As 1.23.0 is released, you can now use the env variable to set the global runner token in Gitea side, so it is easier to register the runner. Maybe this issue can be closed.

See: https://github.com/go-gitea/gitea/pull/32946

@yp05327 commented on GitHub (Jan 9, 2025): As 1.23.0 is released, you can now use the env variable to set the global runner token in Gitea side, so it is easier to register the runner. Maybe this issue can be closed. See: https://github.com/go-gitea/gitea/pull/32946
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13803