Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ElSamhaa opened this issue Dec 10, 2024 · 2 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@ElSamhaa
Copy link

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

@ElSamhaa ElSamhaa added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Dec 10, 2024
@yp05327
Copy link
Contributor

yp05327 commented 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
Copy link
Contributor

yp05327 commented 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: #32946

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Apr 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

3 participants