From 2b9617c7f8c6455e611548ff3469accd885f5c8d Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 3 Aug 2025 09:57:24 +0000 Subject: [PATCH] feat: lxc-systemd defaults to using Forgejo runner 9.0.2 (#804) - features - [PR](https://code.forgejo.org/forgejo/runner/pulls/804): feat: lxc-systemd defaults to using Forgejo runner 9.0.2 Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/804 Reviewed-by: Michael Kriese Co-authored-by: Earl Warren Co-committed-by: Earl Warren --- examples/lxc-systemd/README.md | 6 +++--- examples/lxc-systemd/forgejo-runner-service.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/lxc-systemd/README.md b/examples/lxc-systemd/README.md index d1d1b1d7..f2b3baf1 100644 --- a/examples/lxc-systemd/README.md +++ b/examples/lxc-systemd/README.md @@ -64,7 +64,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.3.0) +- `INPUTS_RUNNER_VERSION`: the version of the Forgejo runner as found in https://code.forgejo.org/forgejo/runner/releases (e.g. 9.0.2) - `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) @@ -86,5 +86,5 @@ The creation of a new runner is driven by the following environment variables: 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`) +- Install: `INPUTS_RUNNER_VERSION=9.0.2 forgejo-runner-service.sh install_runner` +- Pin the version in `/etc/forgejo-runner/N/env` (e.g. `INPUTS_RUNNER_VERSION=9.0.2`) diff --git a/examples/lxc-systemd/forgejo-runner-service.sh b/examples/lxc-systemd/forgejo-runner-service.sh index 35085842..2a121503 100755 --- a/examples/lxc-systemd/forgejo-runner-service.sh +++ b/examples/lxc-systemd/forgejo-runner-service.sh @@ -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:=7.0.0} +: ${INPUTS_RUNNER_VERSION:=9.0.2} : ${KILL_AFTER:=21600} # 6h == 21600 NODEJS_VERSION=20