|
| 1 | +{ |
| 2 | + "$schema": "https://docs.renovatebot.com/renovate-schema.json", |
| 3 | + "enabledManagers": [ |
| 4 | + "custom.regex" |
| 5 | + ], |
| 6 | + "vulnerabilityAlerts": { |
| 7 | + "enabled": false |
| 8 | + }, |
| 9 | + "customManagers": [ |
| 10 | + { |
| 11 | + "description": "Updates PowerShell version in Dockerfiles", |
| 12 | + "customType": "regex", |
| 13 | + "managerFilePatterns": [ |
| 14 | + "/(^|/)Dockerfile$/" |
| 15 | + ], |
| 16 | + "matchStrings": [ |
| 17 | + "ENV POWERSHELL_VERSION=(?<currentValue>\\d+\\.\\d+\\.\\d+)" |
| 18 | + ], |
| 19 | + "depNameTemplate": "PowerShell/PowerShell", |
| 20 | + "datasourceTemplate": "github-releases" |
| 21 | + }, |
| 22 | + { |
| 23 | + "description": "Updates LLVM version and checksums (via postUpgradeTasks) in Dockerfiles", |
| 24 | + "customType": "regex", |
| 25 | + "managerFilePatterns": [ |
| 26 | + "/(^|/)Dockerfile$/" |
| 27 | + ], |
| 28 | + "matchStrings": [ |
| 29 | + "LLVM_VERSION=(?<currentValue>\\d+\\.\\d+\\.\\d+)" |
| 30 | + ], |
| 31 | + "depNameTemplate": "llvm/llvm-project", |
| 32 | + "datasourceTemplate": "github-releases", |
| 33 | + "extractVersionTemplate": "^llvmorg-(?<version>.*)$" |
| 34 | + }, |
| 35 | + { |
| 36 | + "description": "Updates scancode-toolkit version in Dockerfiles", |
| 37 | + "customType": "regex", |
| 38 | + "managerFilePatterns": [ |
| 39 | + "src/azurelinux/**/Dockerfile" |
| 40 | + ], |
| 41 | + "matchStrings": [ |
| 42 | + "ENV SCANCODE_VERSION=(?<currentValue>\\d+\\.\\d+\\.\\d+)" |
| 43 | + ], |
| 44 | + "depNameTemplate": "nexB/scancode-toolkit", |
| 45 | + "datasourceTemplate": "github-releases" |
| 46 | + }, |
| 47 | + { |
| 48 | + "description": "Updates Python version from Azure Artifacts NuGet feed", |
| 49 | + "customType": "regex", |
| 50 | + "managerFilePatterns": [ |
| 51 | + "/(^|/)(nanoserver|windowsservercore)/.+/Dockerfile$/" |
| 52 | + ], |
| 53 | + "matchStrings": [ |
| 54 | + "ENV PYTHON_VERSION=(?<currentValue>\\d+\\.\\d+\\.\\d+)" |
| 55 | + ], |
| 56 | + "depNameTemplate": "python", |
| 57 | + "datasourceTemplate": "nuget", |
| 58 | + "registryUrlTemplate": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" |
| 59 | + }, |
| 60 | + { |
| 61 | + "description": "Updates Git for Windows version in Dockerfiles", |
| 62 | + "customType": "regex", |
| 63 | + "managerFilePatterns": [ |
| 64 | + "/(^|/)Dockerfile$/" |
| 65 | + ], |
| 66 | + "matchStrings": [ |
| 67 | + "ARG GIT_WINDOWS_VERSION=(?<currentValue>\\d+\\.\\d+\\.\\d+)" |
| 68 | + ], |
| 69 | + "depNameTemplate": "git-for-windows/git", |
| 70 | + "datasourceTemplate": "github-releases", |
| 71 | + "extractVersionTemplate": "^v(?<version>\\d+\\.\\d+\\.\\d+)\\.windows\\.\\d+$" |
| 72 | + }, |
| 73 | + { |
| 74 | + "description": "Updates Renovate version in manifest.json based on npm package version", |
| 75 | + "customType": "regex", |
| 76 | + "managerFilePatterns": [ |
| 77 | + "src/azurelinux/manifest.json" |
| 78 | + ], |
| 79 | + "matchStrings": [ |
| 80 | + "\"renovateVersion\":\\s*\"(?<currentValue>\\d+)\"" |
| 81 | + ], |
| 82 | + "depNameTemplate": "renovate", |
| 83 | + "datasourceTemplate": "npm", |
| 84 | + "extractVersionTemplate": "^(?<version>\\d+)", |
| 85 | + "versioningTemplate": "loose" |
| 86 | + } |
| 87 | + ], |
| 88 | + "packageRules": [ |
| 89 | + { |
| 90 | + "description": "Only allow minor/patch updates for LLVM to stay on the respective major version", |
| 91 | + "matchDepNames": [ |
| 92 | + "llvm/llvm-project" |
| 93 | + ], |
| 94 | + "matchUpdateTypes": [ |
| 95 | + "major" |
| 96 | + ], |
| 97 | + "enabled": false |
| 98 | + }, |
| 99 | + { |
| 100 | + "description": "Allow major LLVM updates in net11.0 directories", |
| 101 | + "matchDepNames": [ |
| 102 | + "llvm/llvm-project" |
| 103 | + ], |
| 104 | + "matchUpdateTypes": [ |
| 105 | + "major" |
| 106 | + ], |
| 107 | + "matchFileNames": [ |
| 108 | + "**/net11.0/**" |
| 109 | + ], |
| 110 | + "enabled": true |
| 111 | + } |
| 112 | + ], |
| 113 | + "postUpgradeTasks": { |
| 114 | + "commands": ["bash eng/update-llvm-checksums.sh"], |
| 115 | + "dataFileTemplate": "{{{depName}}}\n{{{packageFile}}}\n{{{newVersion}}}", |
| 116 | + "fileFilters": ["src/**/Dockerfile"] |
| 117 | + } |
| 118 | +} |
0 commit comments