1
0
Fork 0
mirror of https://gitlab.com/renovate-bot/renovate-runner.git synced 2025-04-18 06:48:22 +02:00
renovate-runner/templates/renovate.gitlab-ci.yml
Michael Kriese 86f5f6a67d feat!: only renovate image to major version (renovate-bot/renovate-runner!3294)
BREAKING CHANGE: Renovate image is only pinned to major version docker tag. Addistionally the `pull_policy` is set to `always` to force image updates. This requires GitLab 15.4.
2025-02-06 15:55:35 +00:00

33 lines
882 B
YAML

variables:
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate
RENOVATE_ENDPOINT: $CI_API_V4_URL
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'
LOG_FILE: renovate-log.ndjson
LOG_FILE_LEVEL: debug
CI_RENOVATE_IMAGE: ghcr.io/renovatebot/renovate:39
.renovate:
cache:
key: ${CI_COMMIT_REF_SLUG}-renovate
paths:
- renovate/cache/renovate/repository/
image:
name: ${CI_RENOVATE_IMAGE}
pull_policy: always
script:
- renovate $RENOVATE_EXTRA_FLAGS
renovate:
extends: .renovate
stage: deploy
resource_group: production
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
artifacts:
when: always
expire_in: 1d
paths:
- '$LOG_FILE'