Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:best-practices"
],
"dependencyDashboard": true,
"timezone": "Europe/Paris",
"osvVulnerabilityAlerts": true,
"customManagers": [
{
// https://docs.renovatebot.com/modules/manager/regex/
"customType": "regex",
"managerFilePatterns": ["update.sh"],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\sversions=\\([0-9\\. ]+?(?<currentValue>\\S+)\\)"
]
}
],
"packageRules": [
{
"matchPackageNames": ["php"],
"matchDatasources": ["docker"],
// Override helpers:pinGitHubActionDigests from config:best-practices since we explicitely
// want the latest PHP patch version and not a pinned Docker image
"pinDigests": false,
"prBodyNotes": [
"**Do NOT merge this PR as-is!**",
"",
"This PR is only a reminder that a new PHP version is available, however Renovate doesn't allow us to do everything we need to do.",
"You need to _add_ the new PHP version to the `versions` array in `update.sh` instead of replacing the last.",
"You also need to update the `README.md` to list supported versions."
]
}
]
}
1 change: 1 addition & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -euo pipefail

# renovate: datasource=docker depName=php
versions=(7.3 7.4 8.0 8.1 8.2 8.3 8.4)

for version in "${versions[@]}"; do
Expand Down