Skip to content
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

Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946) #32964

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

GiteaBot
Copy link
Collaborator

@GiteaBot GiteaBot commented Dec 23, 2024

Backport #32946 by wxiaoguang

fix #23703

Now when Gitea start, it reads GITEA_RUNNER_REGISTRATION_TOKEN/GITEA_RUNNER_REGISTRATION_TOKEN_FILE to use that value as global runner token.

If users would like to deploy stateless Gitea/Runner instances, they could simply do this:

openssl rand -hex 24 > /some-dir/runner-token
export GITEA_RUNNER_REGISTRATION_TOKEN_FILE=/some-dir/runner-token
./gitea
export GITEA_RUNNER_REGISTRATION_TOKEN_FILE=/some-dir/runner-token
./act_runner

…tea#32946)

Fix go-gitea#23703

When Gitea starts, it reads GITEA_RUNNER_REGISTRATION_TOKEN
or GITEA_RUNNER_REGISTRATION_TOKEN_FILE to add registration token.
@GiteaBot GiteaBot added docs-update-needed The document needs to be updated synchronously modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/translation labels Dec 23, 2024
@GiteaBot GiteaBot requested review from lunny and Zettat123 December 23, 2024 09:59
@GiteaBot GiteaBot added this to the 1.23.0 milestone Dec 23, 2024
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 23, 2024
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 23, 2024
@github-actions github-actions bot removed the docs-update-needed The document needs to be updated synchronously label Dec 23, 2024
@wxiaoguang wxiaoguang enabled auto-merge (squash) December 23, 2024 10:26
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Dec 23, 2024
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 23, 2024
@wxiaoguang wxiaoguang merged commit 90bd08c into go-gitea:release/v1.23 Dec 23, 2024
26 checks passed
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Mar 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/translation size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants