From 1076658e306530d97f6a9d9ef4e091a80e809da3 Mon Sep 17 00:00:00 2001 From: Prashant Date: Thu, 14 Nov 2024 09:28:13 +0400 Subject: [PATCH] add renovate for alpine --- .github/workflows/renovate.json | 34 +++++++++++++++++++++++++++++++++ .github/workflows/renovate.yml | 25 ++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .github/workflows/renovate.json create mode 100644 .github/workflows/renovate.yml diff --git a/.github/workflows/renovate.json b/.github/workflows/renovate.json new file mode 100644 index 000000000000..ab4fc6bb6dad --- /dev/null +++ b/.github/workflows/renovate.json @@ -0,0 +1,34 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "dependencyDashboard": true, + "onboarding": false, + "automerge": false, + "separateMinorPatch": true, + "platform": "github", + "extends": ["config:base"], + "labels": ["version_bump"], + "forkProcessing": "enabled", + "semanticCommits": "enabled", + "prConcurrentLimit": 20, + "prHourlyLimit": 20, + "dockerfile": { + "enabled": false + }, + "customManagers": [ + { + "customType": "regex", + "fileMatch": ["embedded-bins/Makefile.variables"], + "matchStrings": ["alpine_version\\s*=\\s*(?\\S+)"], + "depNameTemplate": "alpine", + "versioningTemplate": "semver", + "datasourceTemplate": "endoflife-date", + "packageNameTemplate": "alpine" + } + ], + "customDatasources": { + "endoflife-date": { + "defaultRegistryUrlTemplate": "https://endoflife.date/api/alpine.json", + "format": "json" + } + } +} diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml new file mode 100644 index 000000000000..70dd8e5ce399 --- /dev/null +++ b/.github/workflows/renovate.yml @@ -0,0 +1,25 @@ +# Adding renovate workflow to dependencies version in +name: Renovate +on: + schedule: + - cron: '* */6 * * *' # Runs every 6 hours + workflow_dispatch: + push: + branches: + - main +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Self-hosted Renovate + uses: renovatebot/github-action@v41.0.2 + with: + token: ${{ secrets.GH_TOKEN }} + configurationFile: .github/workflows/renovate.json + env: + LOG_LEVEL: 'debug' + RENOVATE_AUTODISCOVER: 'false' + RENOVATE_REPOSITORIES: ${{ github.repository }}