Ctrl K
ComunidadGuías…

renovate.json

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "schedule:earlyMondays",
    "config:recommended",
    "abandonments:recommended",
    ":configMigration"
  ],
  "timezone": "America/Toronto",
  "kubernetes": {
    "managerFilePatterns": [
      "/charts/.+\\.ya?ml$/",
      "/charts/.+\\.tpl$/"
    ]
  },
  "customManagers": [
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/charts/.+\\.ya?ml$/",
        "/charts/.+\\.tpl$/"
      ],
      "matchStrings": [
        "repository:\\s*(?<depName>[^\\s]+)\\s*\\n\\s*tag:\\s*(?<currentValue>[^\\s@]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"
      ],
      "datasourceTemplate": "docker"
    },
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/charts/services/templates/(?:.+/)?_tunnel\\.tpl$/"
      ],
      "matchStrings": [
        "define \\\"tunnel\\.image\\.repository\\\" -\\}}(?<depName>[^\\s]+)\\{\\{- end -\\}}\\s*\\{\\{- define \\\"tunnel\\.image\\.tag\\\" -\\}}(?<currentValue>[^\\s]+)\\{\\{- end -\\}}"
      ],
      "datasourceTemplate": "docker"
    },
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/charts/services/templates/(?:.+/)?postgresql\\.yaml$/"
      ],
      "matchStrings": [
        "postgres_\\d+:\\s*\\n\\s*image:\\s*(?<depName>[^:]+):(?<currentValue>[^\\s]+)"
      ],
      "datasourceTemplate": "docker"
    },
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/charts/.+\\.ya?ml$/",
        "/charts/.+\\.tpl$/"
      ],
      "matchStrings": [
        "kind:\\s*HelmChart\\s*\\n(?:.*\\n)*?\\s*chart:\\s*(?<depName>.*?)\\s*\\n(?:.*\\n)*?\\s*repo:\\s*(?<registryUrl>.*?)\\s*\\n(?:.*\\n)*?\\s*version:\\s*(?<currentValue>.*?)\\s*\\n",
        "kind:\\s*HelmChart\\s*\\n(?:.*\\n)*?\\s*repo:\\s*(?<registryUrl>.*?)\\s*\\n(?:.*\\n)*?\\s*chart:\\s*(?<depName>.*?)\\s*\\n(?:.*\\n)*?\\s*version:\\s*(?<currentValue>.*?)\\s*\\n"
      ],
      "datasourceTemplate": "helm"
    },
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/charts/.+\\.ya?ml$/",
        "/charts/.+\\.tpl$/"
      ],
      "matchStrings": [
        "kind:\\s*HelmChart\\s*\\n(?:.*\\n)*?\\s*chart:\\s*oci://(?<registryUrl>.*)/(?<depName>[^\\s]+)\\s*\\n(?:.*\\n)*?\\s*version:\\s*(?<currentValue>[^\\s]+)\\s*\\n"
      ],
      "datasourceTemplate": "docker",
      "registryUrlTemplate": "https://{{registryUrl}}",
      "versioningTemplate": "helm"
    },
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/charts/.+\\.ya?ml$/",
        "/charts/.+\\.tpl$/"
      ],
      "matchStrings": [
        "moduleName: [\"']github\\.com/(?<depName>[^/]+/[^/]+)[\"']\\s*\\n\\s*version: [\"'](?<currentValue>[^\"']+)[\"']"
      ],
      "datasourceTemplate": "github-releases"
    },
    {
      "customType": "regex",
      "managerFilePatterns": [
        "/prometheus\\.yaml$/"
      ],
      "matchStrings": [
        "#\\s+renovate:\\s+depName=\"(?<depName>[^\"]+)\"\\n\\s+gnetId:\\s+(?<gnetId>\\d+)\\n\\s+revision:\\s+(?<currentValue>\\d+)"
      ],
      "packageNameTemplate": "{{{gnetId}}}",
      "versioningTemplate": "regex:^(?<major>\\d+)$",
      "datasourceTemplate": "custom.grafana-dashboards"
    }
  ],
  "packageRules": [
    {
      "matchPackageNames": [
        "ghcr.io/arch-anes/crunchy-postgres"
      ],
      "versioning": "regex:^(?<compatibility>ubi9-(?<major>\\d+))\\.(?<minor>\\d+)-(?<patch>\\d+)$"
    },
    {
      "description": "Custom commit messages",
      "commitMessageExtra": "from {{currentVersion}} -> {{newVersion}} ([changelog]({{sourceUrl}}))",
      "matchDatasources": [
        "helm",
        "docker",
        "github-releases"
      ]
    },
    {
      "description": "Disable automerge for select packages",
      "automerge": false,
      "matchPackageNames": [
        "crunchydata/pgo"
      ],
      "matchDatasources": [
        "docker",
        "helm"
      ]
    },
    {
      "description": "Helm release commit messages",
      "commitMessageTopic": "Helm release {{depName}}",
      "matchManagers": [
        "custom.regex"
      ],
      "matchDatasources": [
        "helm"
      ]
    },
    {
      "description": "OCI Helm chart commit messages",
      "commitMessageTopic": "Helm release {{depName}}",
      "matchManagers": [
        "custom.regex"
      ],
      "matchDatasources": [
        "docker"
      ],
      "matchJsonata": [
        "versioning = 'helm'"
      ]
    },
    {
      "description": "Docker release commit messages",
      "commitMessageTopic": "Docker release {{depName}}",
      "matchManagers": [
        "custom.regex"
      ],
      "matchDatasources": [
        "docker"
      ],
      "matchJsonata": [
        "versioning != 'helm'"
      ]
    },
    {
      "description": "Grafana dashboard commit messages",
      "commitMessageTopic": "Grafana dashboard {{depName}}",
      "matchDatasources": [
        "custom.grafana-dashboards"
      ],
      "matchFileNames": [
        "charts/services/templates/prometheus.yaml"
      ]
    },
    {
      "description": "Group Kubernetes Grafana dashboards together",
      "matchDatasources": [
        "custom.grafana-dashboards"
      ],
      "matchDepNames": [
        "Kubernetes Views *"
      ],
      "groupName": "Grafana dashboards Kubernetes Views"
    },
    {
      "matchJsonata": [
        "registryUrl = 'https://oci.trueforge.org'"
      ],
      "changelogUrl": "https://trueforge.org/truetech/truecharts/charts/stable/{{depName}}/changelog/"
    },
    {
      "matchPackageNames": [
        "**/tdarr*"
      ],
      "groupName": "tdarr",
      "sourceUrl": "https://github.com/HaveAGitGat/tdarr"
    },
    {
      "matchPackageNames": [
        "**/intel-device-plugins-*"
      ],
      "groupName": "intel-gpu",
      "sourceUrl": "https://github.com/intel/intel-device-plugins-for-kubernetes"
    },
    {
      "matchPackageNames": [
        "**/jellyfin"
      ],
      "sourceUrl": "https://github.com/jellyfin/jellyfin"
    },
    {
      "description": "MinIO timestamp versioning",
      "matchPackageNames": [
        "pgsty/silo"
      ],
      "versioning": "regex:^RELEASE\\.(?<major>\\d{4})-(?<minor>\\d{2})-(?<patch>\\d{2})T\\d{2}-\\d{2}-\\d{2}Z$"
    },
    {
      "matchPackageNames": [
        "**/octoprint"
      ],
      "sourceUrl": "https://github.com/OctoPrint/octoprint"
    },
    {
      "matchPackageNames": [
        "**/transmission"
      ],
      "sourceUrl": "https://github.com/transmission/transmission"
    },
    {
      "matchPackageNames": [
        "lscr.io/linuxserver/transmission"
      ],
      "allowedVersions": "!/^202[0-9]\\./",
      "versioning": "semver"
    },
    {
      "description": "Pin Odoo to the 19.0 rolling tag and only refresh its digest",
      "matchDatasources": [
        "docker"
      ],
      "matchPackageNames": [
        "public.ecr.aws/docker/library/odoo"
      ],
      "allowedVersions": "/^19\\.0$/",
      "pinDigests": true
    },
    {
      "automerge": true,
      "automergeType": "pr",
      "automergeStrategy": "squash",
      "matchUpdateTypes": [
        "patch"
      ],
      "matchDatasources": [
        "helm",
        "docker",
        "github-releases"
      ]
    }
  ],
  "customDatasources": {
    "grafana-dashboards": {
      "defaultRegistryUrlTemplate": "https://grafana.com/api/dashboards/{{packageName}}",
      "format": "json",
      "transformTemplates": [
        "{\"releases\":[{\"version\": $string(revision)}]}"
      ]
    }
  }
}