In host mode the runner runs actions/checkout and friends with the host's node, and stpbuild had none: salary-insights' first run there failed with 'Cannot find: node in PATH'. RUNNER_NODE_VERSION in a host file installs that release from nodejs.org (sha256 from SHASUMS256.txt) as /usr/local/bin/node. stpbuild pins Node 24, the actions' runtime; Renovate bumps it within the major. Co-Authored-By: Claude Opus 5.5 <[email protected]>
48 lines
1.6 KiB
JSON
48 lines
1.6 KiB
JSON
// 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>.+)$",
|
|
},
|
|
{
|
|
// The host `node` that runs JavaScript actions in host-mode jobs.
|
|
customType: "regex",
|
|
managerFilePatterns: ["/^hosts/[^/]+\\.env$/"],
|
|
matchStrings: ["RUNNER_NODE_VERSION=(?<currentValue>[0-9][\\w.-]*)"],
|
|
depNameTemplate: "node",
|
|
datasourceTemplate: "node-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."],
|
|
},
|
|
// Stay on the major that actions declare (`runs.using: node24`); move by hand.
|
|
{
|
|
matchDepNames: ["node"],
|
|
matchUpdateTypes: ["major"],
|
|
enabled: false,
|
|
},
|
|
],
|
|
}
|