From e2321586384f17cbdb9296248ff2e5425a3283f0 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Fri, 22 Aug 2025 21:02:27 +1000 Subject: [PATCH] chore: Initial attempt at Renovate workflow --- .gitea/workflows/renovate.yaml | 27 +++++++++++++++++++++++++++ .renovate/config.js | 13 +++++++++++++ renovate.json | 12 ++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 .gitea/workflows/renovate.yaml create mode 100644 .renovate/config.js create mode 100644 renovate.json diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml new file mode 100644 index 0000000..d184da8 --- /dev/null +++ b/.gitea/workflows/renovate.yaml @@ -0,0 +1,27 @@ +name: renovate + +on: + workflow_dispatch: # allows the workflow to be run manually when desired + branches: + - main + schedule: # runs this workflow at the scheduled time (uses UTC, adjust for your timezone) + - cron: "0 12 * * *" + push: # runs this workflow when pushes to the main branch are made + branches: + - master + +jobs: + renovate: + runs-on: ubuntu-latest + container: ghcr.io/renovatebot/renovate:latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Run Renovate CLI + run: | + renovate + env: + LOG_LEVEL: "debug" + RENOVATE_CONFIG_FILE: ${{ gitea.workspace }}/.renovate/config.js + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} + #GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }} # optional diff --git a/.renovate/config.js b/.renovate/config.js new file mode 100644 index 0000000..ccd6ebd --- /dev/null +++ b/.renovate/config.js @@ -0,0 +1,13 @@ +module.exports = { + platform: 'gitea', + endpoint: 'https://code.spamasaurus.com/api/v1/', // set this to the url of your gitea instance + gitAuthor: 'Renovate Bot ', // set the email address to whatever email your gave this user in your gitea + username: 'srv.renovate', + autodiscover: true, + onboardingConfig: { + $schema: 'https://docs.renovatebot.com/renovate-schema.json', + extends: ['config:recommended'], + }, + optimizeForDisabled: true, + persistRepoData: true, +}; diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..70eb495 --- /dev/null +++ b/renovate.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:recommended"], + "dependencyDashboard": true, + "dependencyDashboardTitle": "Renovate Dashboard", + "assignees": ["djpbessems"], + "configMigration": true, + "prHourlyLimit": 0, + "argocd": { + "managerFilePatterns": ["/\\.yaml$/"] + } +}