mirror of
https://gitlab.com/renovate-bot/renovate-runner.git
synced 2025-04-18 06:48:22 +02:00
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.
This commit is contained in:
parent
c744c300bd
commit
86f5f6a67d
3 changed files with 22 additions and 6 deletions
16
README.md
16
README.md
|
@ -54,8 +54,20 @@ include:
|
|||
- project: 'renovate-bot/renovate-runner'
|
||||
file: '/templates/renovate.gitlab-ci.yml'
|
||||
|
||||
renovate:
|
||||
image: ghcr.io/renovatebot/renovate:full
|
||||
variables:
|
||||
CI_RENOVATE_IMAGE: ghcr.io/renovatebot/renovate:full
|
||||
```
|
||||
|
||||
You can also pin the renovate version to the full docker tag.
|
||||
Can be any docker image reference including digest.
|
||||
|
||||
```yaml
|
||||
include:
|
||||
- project: 'renovate-bot/renovate-runner'
|
||||
file: '/templates/renovate.gitlab-ci.yml'
|
||||
|
||||
variables:
|
||||
CI_RENOVATE_IMAGE: ghcr.io/renovatebot/renovate:39.161.5@sha256:703e18ee0536d459ecb9d62d7ead6ecb0001f52b12b5f9c0264fd8b007051f5e
|
||||
```
|
||||
|
||||
To prevent unexpected changes in your pipeline, you can pin the version of this template and include it in your Renovate updates:
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
variables:
|
||||
RENOVATE_ENDPOINT: $CI_API_V4_URL
|
||||
RENOVATE_PLATFORM: gitlab
|
||||
CI_RENOVATE_IMAGE: ghcr.io/renovatebot/renovate:39.161.6@sha256:c643bcac07ef1d63f98b57855f991591a92773f0d2ab899acc6d01600caa7532
|
||||
CI_RENOVATE_IMAGE: ghcr.io/renovatebot/renovate:39
|
||||
|
||||
renovate-config-validator:
|
||||
stage: test
|
||||
image: $CI_RENOVATE_IMAGE
|
||||
image:
|
||||
name: ${CI_RENOVATE_IMAGE}
|
||||
pull_policy: always
|
||||
script:
|
||||
- renovate-config-validator $RENOVATE_CONFIG_VALIDATOR_EXTRA_FLAGS
|
||||
|
|
|
@ -7,14 +7,16 @@ variables:
|
|||
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
||||
LOG_FILE: renovate-log.ndjson
|
||||
LOG_FILE_LEVEL: debug
|
||||
CI_RENOVATE_IMAGE: ghcr.io/renovatebot/renovate:39.161.6@sha256:c643bcac07ef1d63f98b57855f991591a92773f0d2ab899acc6d01600caa7532
|
||||
CI_RENOVATE_IMAGE: ghcr.io/renovatebot/renovate:39
|
||||
|
||||
.renovate:
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}-renovate
|
||||
paths:
|
||||
- renovate/cache/renovate/repository/
|
||||
image: ${CI_RENOVATE_IMAGE}
|
||||
image:
|
||||
name: ${CI_RENOVATE_IMAGE}
|
||||
pull_policy: always
|
||||
script:
|
||||
- renovate $RENOVATE_EXTRA_FLAGS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue