Skip to content

Commit

Permalink
Handle buildkit updates with renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Jan 4, 2025
1 parent cbea3ea commit 7c08353
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 5 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ARG BASE_IMAGE="us-docker.pkg.dev/libops-images/shared/isle-drupal"
# this is set in libops.yml as "islandora-tag"
ARG ISLANDORA_TAG=main
FROM ${BASE_IMAGE}:${ISLANDORA_TAG}

Expand Down
3 changes: 2 additions & 1 deletion libops.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: 1.0
islandora-tag: 3.4
# renovate: datasource=github-releases depName=isle-buildkit packageName=Islandora-Devops/isle-buildkit
islandora-tag: 3.4.9
https-firewall: []
ssh-firewall: []
blocked-ips: []
Expand Down
59 changes: 55 additions & 4 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
':rebaseStalePrs'
],
enabledManagers: [
'composer'
'composer',
'custom.regex'
],
packageRules: [
{
Expand All @@ -14,12 +15,62 @@
'patch',
'digest',
],
groupName: 'bump dependencies',
matchManagers: [
'custom.regex'
],
groupName: 'bump buildkit',
schedule: [
'before 10am on Monday',
]
},
{
matchUpdateTypes: [
'major',
],
matchManagers: [
'custom.regex'
],
groupName: 'major buildkit update',
schedule: [
'* 0-5 1-7 * 1'
]
},
{
matchUpdateTypes: [
'minor',
'patch',
'digest',
],
matchManagers: [
'composer',
],
groupName: 'bump composer deps',
schedule: [
'after 10pm on Wednesday',
]
},
{
matchUpdateTypes: [
'major',
],
matchManagers: [
'composer',
],
groupName: 'major composer updates',
schedule: [
'* 0-5 8-14 * 1'
],
}
],
customManagers: [
{
customType: "regex",
description: "Update buildkit tag in libops.yml",
fileMatch: [
"^libops\\.yml$",
],
matchPackageNames: [
'*',
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?) packageName=(?<packageName>.+?)\\sislandora-tag: (?<currentValue>[\\d\\.]+?)"
]
}
],
Expand Down

0 comments on commit 7c08353

Please sign in to comment.