diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml new file mode 100644 index 0000000..750b3e9 --- /dev/null +++ b/.gitea/workflows/renovate.yaml @@ -0,0 +1,32 @@ +--- +# yamllint disable rule:line-length + +name: renovate + +on: # yamllint disable-line rule:truthy + schedule: + - cron: "@daily" + push: + branches: + - main + +jobs: + renovate: + runs-on: [nas] + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Self-hosted Renovate + uses: renovatebot/github-action@02f4fdeb479bbb229caa7ad82cb5e691c07e80b3 # v41.0.14 + with: + token: ${{ secrets.RENOVATE_TOKEN }} + env-regex: "^(?:RENOVATE_\\w+|LOG_LEVEL|GITHUB_COM_TOKEN)$" + env: + LOG_LEVEL: "info" + GITHUB_COM_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} + RENOVATE_PLATFORM: "gitea" + RENOVATE_GIT_AUTHOR: "Renovate Bot " + RENOVATE_GIT_EMAIL: "renovate@boosted.science" + RENOVATE_ENDPOINT: "https://gitea.jheuel.boosted.science/api/v1/" + RENOVATE_AUTODISCOVER: "true" + RENOVATE_OPTIMIZE_FOR_DISABLED: "true" diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..c4ec35d --- /dev/null +++ b/renovate.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "timezone": "Europe/Berlin", + "extends": [ + "config:recommended", + "helpers:pinGitHubActionDigests", + ":configMigration", + ":pinDevDependencies", + ":dependencyDashboard", + "docker:pinDigests", + "preview:dockerCompose", + "preview:dockerVersions" + ], + "packageRules": [ + { + "matchUpdateTypes": [ + "minor", + "patch", + "pin", + "digest" + ], + "automerge": true + } + ] +}