Commit 684a5d0f authored by Michael Kriese's avatar Michael Kriese
Browse files

docs: auto update readme and provide preset (renovate-bot/renovate-runner!2293)

Closes #85
parent c8bd4232
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ include:

variables:
  RENOVATE_GIT_AUTHOR: Renovate Bot <bot@renovateapp.com>
  RENOVATE_CONFIG_VALIDATOR_EXTRA_FLAGS: default.json .gitlab/renovate.json

stages:
  - test
+22 −0
Original line number Diff line number Diff line
@@ -44,6 +44,14 @@
      "matchPackageNames": ["ghcr.io/containerbase/node"],
      "semanticCommitType": "chore",
      "versioning": "node"
    },
    {
      "description": "Update runner references in readme",
      "matchDepNames": ["renovate-runner"],
      "matchFileNames": ["README.md"],
      "additionalBranchPrefix": "docs-",
      "semanticCommitType": "docs",
      "separateMajorMinor": false
    }
  ],
  "customManagers": [
@@ -56,6 +64,20 @@
      ],
      "datasourceTemplate": "docker",
      "versioningTemplate": "docker"
    },
    {
      "customType": "regex",
      "description": "Update renovate-runner references",
      "fileMatch": ["^README\\.md$"],
      "matchStrings": [
        "\\s+- remote: https://gitlab\\.com/renovate-bot/renovate-runner/-/raw/(?<currentValue>v[0-9.]+)/",
        "\\s+ref: (?<currentValue>v[0-9.]+)\\s+",
        "\\s`(?<currentValue>v[0-9.]+)`\\s"
      ],
      "datasourceTemplate": "gitlab-releases",
      "depNameTemplate": "renovate-runner",
      "packageNameTemplate": "renovate-bot/renovate-runner",
      "versioningTemplate": "semver"
    }
  ],
  "gitlabci": {
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ You can now use remote includes to use these templates on self-hosted gitlab ins
The following sample uses the `v12.0.0` tag.
You can also use `main` branch but a tag is preferred.
Refer to GitLab [include](https://docs.gitlab.com/ee/ci/yaml/includes.html) samples for more information.
You can add `gitlab>renovate-bot/renovate-runner` to your repos `renovate.json>extends` array to automatically update the runner version.

```yaml
include:

default.json

0 → 100644
+18 −0
Original line number Diff line number Diff line
{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "description": "Renovate preset to update gitlab remote include for renovate templates",
  "customManagers": [
    {
      "customType": "regex",
      "description": "Update renovate remote includes version",
      "fileMatch": ["\\.gitlab-ci\\.ya?ml$"],
      "matchStrings": [
        "-\\s+remote:\\s+https://gitlab\\.com/renovate-bot/renovate-runner/-/raw/(?<currentValue>v[0-9.]+)/"
      ],
      "datasourceTemplate": "gitlab-releases",
      "depNameTemplate": "renovate-runner",
      "packageNameTemplate": "renovate-bot/renovate-runner",
      "versioningTemplate": "semver"
    }
  ]
}