mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-06-27 16:35:58 +00:00
chore: upgrade the lxc-systemd example to v6.3.0 [skip cascade] (#505)
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/505 Reviewed-by: Kwonunn <kwonunn@noreply.code.forgejo.org> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
d93829cf07
commit
fd931b3e37
2 changed files with 10 additions and 2 deletions
|
@ -30,6 +30,14 @@ Upgrade to the version X.Y.Z (e.g 6.2.1):
|
|||
|
||||
- `forgejo-runner-service.sh upgrade X.Y.Z`
|
||||
|
||||
### Using a specific version of the Forgejo runner
|
||||
|
||||
The goal is that a LXC container uses a version of the Forgejo runner
|
||||
that is different from the default. It needs to be installed and pinned.
|
||||
|
||||
- Install: `INPUTS_RUNNER_VERSION=6.3.0 forgejo-runner-service.sh install_runner`
|
||||
- Pin the version in `/etc/forgejo-runner/N/env` (e.g. `INPUTS_RUNNER_VERSION=6.3.0`)
|
||||
|
||||
## Description
|
||||
|
||||
- Each runner is assigned a unique serial number (`$INPUTS_SERIAL`)
|
||||
|
@ -63,7 +71,7 @@ The creation of a new runner is driven by the following environment variables:
|
|||
- `INPUTS_SERIAL`: unique number in the range `[10-100]` (check `/etc/forgejo-runner`)
|
||||
- `INPUTS_TOKEN`: a runner registration token obtained from the web UI
|
||||
- `INPUTS_FORGEJO`: the Forgejo instance from which `INPUTS_TOKEN` was obtained (e.g. https://code.forgejo.org)
|
||||
- `INPUTS_RUNNER_VERSION`: the version of the Forgejo runner as found in https://code.forgejo.org/forgejo/runner/releases (e.g. 6.2.0)
|
||||
- `INPUTS_RUNNER_VERSION`: the version of the Forgejo runner as found in https://code.forgejo.org/forgejo/runner/releases (e.g. 6.3.0)
|
||||
- `INPUTS_LXC_CONFIG`: the value of the `--config` argument of [lxc-helpers](https://code.forgejo.org/forgejo/lxc-helpers/#usage) used when creating the LXC container for the runner (e.g. `docker`)
|
||||
- `INPUTS_LIFETIME`: the LXC container is re-created when its lifetime expires (e.g. 7d)
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ trap "rm -fr $TMPDIR" EXIT
|
|||
: ${INPUTS_FORGEJO:=https://code.forgejo.org}
|
||||
: ${INPUTS_LIFETIME:=7d}
|
||||
: ${INPUTS_LXC_HELPERS_VERSION:=1.0.3}
|
||||
: ${INPUTS_RUNNER_VERSION:=6.2.2}
|
||||
: ${INPUTS_RUNNER_VERSION:=6.3.0}
|
||||
|
||||
: ${KILL_AFTER:=21600} # 6h == 21600
|
||||
NODEJS_VERSION=20
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue