diff --git a/.github/renovate.json5 b/.github/renovate.json5 new file mode 100644 index 0000000..2108955 --- /dev/null +++ b/.github/renovate.json5 @@ -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 '?(?.*?):(?[^'\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, + }, + ] +} \ No newline at end of file diff --git a/.github/workflows/schedule-renovate.yaml b/.github/workflows/schedule-renovate.yaml new file mode 100644 index 0000000..c388cad --- /dev/null +++ b/.github/workflows/schedule-renovate.yaml @@ -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 }} \ No newline at end of file