fix(forgejo): changed forgejo-runner command to perform initial registration
This commit is contained in:
parent
a12c99f9aa
commit
407cf2d0d9
1 changed files with 11 additions and 1 deletions
|
|
@ -15,7 +15,17 @@ spec:
|
|||
containers:
|
||||
- name: runner
|
||||
image: code.forgejo.org/forgejo/runner:3.5.1
|
||||
command: ["forgejo-runner", "daemon"]
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
forgejo-runner register \
|
||||
--no-interactive
|
||||
--instance-url $FORGEJO_INSTANCE_URL \
|
||||
--token $FORGEJO_RUNNER_REGISTRATION_TOKEN \
|
||||
--name $FORGEJO_RUNNER_NAME \
|
||||
--labels docker:docker://node:22 && \
|
||||
forgejo-runner daemon
|
||||
env:
|
||||
- name: FORGEJO_INSTANCE_URL
|
||||
value: "http://forgejo.forgejo.svc.cluster.local:3000"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue