Created
October 1, 2025 11:46
-
-
Save jonashackt/f2c2bc05053f5ed303d029a7241bf7dd to your computer and use it in GitHub Desktop.
GitLab Renovate for default runners configured as scheduled pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| variables: | |
| RENOVATE_AUTODISCOVER: 'true' | |
| RENOVATE_AUTODISCOVER_FILTER: 'mygroup/**' | |
| RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate | |
| RENOVATE_BINARY_SOURCE: 'install' | |
| RENOVATE_ENDPOINT: $CI_API_V4_URL | |
| RENOVATE_EXTRA_FLAGS: '' | |
| RENOVATE_PLATFORM: gitlab | |
| RENOVATE_ONBOARDING_CONFIG: '{"$$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["config:recommended"] }' | |
| RENOVATE_OPTIMIZE_FOR_DISABLED: 'true' | |
| RENOVATE_REPOSITORY_CACHE: 'enabled' | |
| RENOVATE_REQUIRE_CONFIG: 'required' | |
| RENOVATE_ONBOARDING: 'true' | |
| RENOVATE_LOG_FILE: renovate-log.ndjson | |
| RENOVATE_LOG_FILE_LEVEL: debug | |
| RENOVATE_REGISTRY_ALIASES: "{\"$$CI_SERVER_FQDN\": \"$CI_SERVER_FQDN\"}" | |
| LOG_LEVEL: info | |
| renovate: | |
| stage: deploy | |
| image: renovate/renovate:41.132.2@sha256:3ac0b30ab5b89ecf7e2bb00b0a97246cbb7443bcf9a363f4a888643e3a6e1fa4 | |
| variables: | |
| KUBERNETES_CPU_REQUEST: 2 | |
| KUBERNETES_CPU_LIMIT: 2 | |
| RENOVATE_PR_CONCURRENT_LIMIT: 0 | |
| RENOVATE_PR_HOURLY_LIMIT: 0 | |
| rules: | |
| - if: '$CI_PIPELINE_SOURCE == "schedule"' | |
| - if: '$CI_PIPELINE_SOURCE == "trigger"' | |
| - if: '$CI_PIPELINE_SOURCE == "web"' | |
| script: | |
| - renovate $RENOVATE_EXTRA_FLAGS | |
| cache: | |
| key: ${CI_COMMIT_REF_SLUG}-renovate | |
| paths: | |
| - renovate/cache/renovate/repository/ | |
| artifacts: | |
| when: always | |
| expire_in: 1d | |
| paths: | |
| - '$RENOVATE_LOG_FILE' |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to add:
RENOVATE_TOKEN : a group access token for the GitLab group you want renovate to use in
RENOVATE_GITHUB_COM_TOKEN : a token for github.com API Access to get the release notes etc. (see https://docs.renovatebot.com/getting-started/private-packages/#looking-up-changelogs)