Skip to content

Commit a7080f5

Browse files
Zettat123techknowlogick
authored and
techknowlogick
committed
Update examples for GITEA_RUNNER_REGISTRATION_TOKEN env (#630)
For go-gitea/gitea#32946 Reviewed-on: https://gitea.com/gitea/act_runner/pulls/630 Reviewed-by: Lunny Xiao <[email protected]> Reviewed-by: techknowlogick <[email protected]> Co-authored-by: Zettat123 <[email protected]> Co-committed-by: Zettat123 <[email protected]>
1 parent 8b72d1c commit a7080f5

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

examples/docker-compose/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
retries: 3
1313
start_period: 30s
1414
timeout: 10s
15+
environment:
16+
# GITEA_RUNNER_REGISTRATION_TOKEN can be used to set a global runner registration token.
17+
# The Gitea version must be v1.23 or higher.
18+
# It's also possible to use GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location.
19+
# - GITEA_RUNNER_REGISTRATION_TOKEN=<user-defined registration token>
1520

1621
runner:
1722
image: gitea/act_runner

examples/kubernetes/dind-docker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ spec:
1212
---
1313
apiVersion: v1
1414
data:
15+
# The registration token can be obtained from the web UI, API or command-line.
16+
# You can also set a pre-defined global runner registration token for the Gitea instance via
17+
# `GITEA_RUNNER_REGISTRATION_TOKEN`/`GITEA_RUNNER_REGISTRATION_TOKEN_FILE` environment variable.
1518
token: << base64 encoded registration token >>
1619
kind: Secret
1720
metadata:

examples/kubernetes/rootless-docker.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ spec:
1212
---
1313
apiVersion: v1
1414
data:
15-
token: << runner registration token goes here >>
15+
# The registration token can be obtained from the web UI, API or command-line.
16+
# You can also set a pre-defined global runner registration token for the Gitea instance via
17+
# `GITEA_RUNNER_REGISTRATION_TOKEN`/`GITEA_RUNNER_REGISTRATION_TOKEN_FILE` environment variable.
18+
token: << base64 encoded registration token >>
1619
kind: Secret
1720
metadata:
1821
name: runner-secret

0 commit comments

Comments
 (0)