Install gitea-runner on a VM as a systemd service
One hosts/<host>.env per runner (name, user, labels, capacity) and an idempotent install.sh: pinned VERSION with sha256 check, minimal config.yaml and .runner in /var/lib/gitea-runner, upstream's systemd unit. Replaces stpweb's gitea-runner/ and stpbuild's untracked copy, both started by @reboot cron. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// What Renovate updates here; it runs from stpweb's .gitea/workflows/renovate.yaml
|
||||
// (this repo is in its RENOVATE_REPOSITORIES). Merging a bump changes nothing
|
||||
// until `sudo ./install.sh <host>` is re-run on each runner VM.
|
||||
{
|
||||
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
||||
extends: ["config:recommended"],
|
||||
timezone: "Europe/London",
|
||||
|
||||
minimumReleaseAge: "3 days",
|
||||
|
||||
customManagers: [
|
||||
{
|
||||
// The pinned gitea-runner release in install.sh.
|
||||
customType: "regex",
|
||||
managerFilePatterns: ["/^install\\.sh$/"],
|
||||
matchStrings: ['VERSION="(?<currentValue>[0-9][\\w.-]*)"'],
|
||||
depNameTemplate: "gitea/runner",
|
||||
datasourceTemplate: "gitea-releases",
|
||||
registryUrlTemplate: "https://gitea.com",
|
||||
extractVersionTemplate: "^v(?<version>.+)$",
|
||||
},
|
||||
],
|
||||
|
||||
packageRules: [
|
||||
// A major can raise the minimum Gitea version (v6 needed 1.26.2), so
|
||||
// check its notes against stpgit before merging.
|
||||
{
|
||||
matchPackageNames: ["gitea/runner"],
|
||||
matchUpdateTypes: ["major"],
|
||||
prBodyNotes: ["Major release: check the minimum Gitea version in the release notes against stpgit before merging."],
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user