mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-12-21 13:24:24 +03:00
[FORGEJO] default labels to a single docker
This commit is contained in:
parent
cf83589d0e
commit
29a03e31a0
2 changed files with 2 additions and 5 deletions
|
@ -97,7 +97,7 @@ The user is `root` with password `admin1234`. The runner is registered with:
|
||||||
```
|
```
|
||||||
cd setup-forgejo
|
cd setup-forgejo
|
||||||
docker exec --user 1000 forgejo forgejo actions generate-runner-token > forgejo-runner-token
|
docker exec --user 1000 forgejo forgejo actions generate-runner-token > forgejo-runner-token
|
||||||
../runner/forgejo-runner register --no-interactive --instance "http://$(cat forgejo-ip):3000/" --name runner --token $(cat forgejo-runner-token) --labels ubuntu-latest:docker://node:16-buster,self-hosted
|
../runner/forgejo-runner register --no-interactive --instance "http://$(cat forgejo-ip):3000/" --name runner --token $(cat forgejo-runner-token) --labels docker:docker://node:16-bullseye,self-hosted
|
||||||
```
|
```
|
||||||
|
|
||||||
And launched with:
|
And launched with:
|
||||||
|
|
|
@ -91,10 +91,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var defaultLabels = []string{
|
var defaultLabels = []string{
|
||||||
"ubuntu-latest:docker://node:16-bullseye",
|
"docker:docker://node:16-bullseye",
|
||||||
"ubuntu-22.04:docker://node:16-bullseye", // There's no node:16-bookworm yet
|
|
||||||
"ubuntu-20.04:docker://node:16-bullseye",
|
|
||||||
"ubuntu-18.04:docker://node:16-buster",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type registerInputs struct {
|
type registerInputs struct {
|
||||||
|
|
Loading…
Reference in a new issue