Adding Renovate.

This commit is contained in:
Joseph Hanson 2023-05-03 07:37:09 -05:00
parent 59cdb11409
commit b3a0db5a5b
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 75 additions and 0 deletions

38
.github/renovate.json5 vendored Normal file
View file

@ -0,0 +1,38 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>bjw-s/renovate-config",
"github>bjw-s/renovate-config:automerge-github-actions",
],
"platform": "github",
"username": "bjw-s-bot[bot]",
"gitAuthor": "bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>",
"repositories": ["bjw-s/vyos-config"],
"regexManagers": [
{
"description": ["Generic Docker image Regex manager"],
"fileMatch": [
"config-parts/.+\\.sh$"
],
"matchStrings": [
"set container name .* image '?(?<depName>.*?):(?<currentValue>[^'\n]*=?)'?"
],
"datasourceTemplate": "docker"
},
],
"packageRules": [
{
description: "1Password Connect images",
groupName: "1password-connect",
matchPackageNames: [
"docker.io/1password/connect-sync",
"docker.io/1password/connect-api",
],
matchDatasources: ["docker"],
"group": {
"commitMessageTopic": "{{{groupName}}} group"
},
separateMinorPatch: true,
},
]
}

View file

@ -0,0 +1,37 @@
---
name: Schedule - Renovate
on:
workflow_dispatch:
inputs:
dryRun:
description: "Dry-Run"
default: false
required: false
type: boolean
logLevel:
description: "Log-Level"
default: "debug"
required: false
schedule:
- cron: "0 * * * *"
push:
branches:
- main
paths:
- ".github/renovate.json5"
- ".github/renovate/**.json"
- ".github/renovate/**.json5"
- ".github/workflows/schedule-renovate.yaml"
jobs:
renovate:
name: Renovate
uses: bjw-s/gh-workflows/.github/workflows/run-renovate.yaml@main
with:
configurationFile: ".github/renovate.json5"
dryRun: ${{ inputs.dryRun || 'false' }}
renovateLogLevel: ${{ inputs.logLevel || 'debug' }}
# secrets:
# app_id: ${{ secrets.BJWS_APP_ID }}
# app_private_key: ${{ secrets.BJWS_APP_PRIVATE_KEY }}