mirror of
https://gitlab.opencode.de/bmi/opendesk/deployment/opendesk.git
synced 2025-12-07 16:01:37 +01:00
fix(ci): Add renovate
This commit is contained in:
@@ -26,6 +26,7 @@ stages:
|
|||||||
- ".pre"
|
- ".pre"
|
||||||
- "scan"
|
- "scan"
|
||||||
- "automr"
|
- "automr"
|
||||||
|
- "renovate"
|
||||||
- "lint"
|
- "lint"
|
||||||
- "env-cleanup"
|
- "env-cleanup"
|
||||||
- "env"
|
- "env"
|
||||||
@@ -131,6 +132,12 @@ variables:
|
|||||||
options:
|
options:
|
||||||
- "yes"
|
- "yes"
|
||||||
- "no"
|
- "no"
|
||||||
|
RUN_RENOVATE:
|
||||||
|
description: "Triggers the Renovate based check for dependency updates."
|
||||||
|
value: "no"
|
||||||
|
options:
|
||||||
|
- "yes"
|
||||||
|
- "no"
|
||||||
RUN_TESTS:
|
RUN_TESTS:
|
||||||
description: "Triggers execution of E2E-tests."
|
description: "Triggers execution of E2E-tests."
|
||||||
value: "yes"
|
value: "yes"
|
||||||
@@ -536,6 +543,19 @@ reuse-linter:
|
|||||||
when: "never"
|
when: "never"
|
||||||
- when: "always"
|
- when: "always"
|
||||||
|
|
||||||
|
renovate:
|
||||||
|
rules:
|
||||||
|
- if: $RUN_RENOVATE == "yes"
|
||||||
|
when: "on_success"
|
||||||
|
image: "ghcr.io/renovatebot/renovate:37.59.7@sha256:a0dd48947ca03d9088ff7bfdcf689a5cc3c1eb9522d5ff87d14636b5ad60a3dc"
|
||||||
|
variables:
|
||||||
|
RENOVATE_CONFIG_FILE: "${CI_PROJECT_DIR}/.renovate/config.yaml"
|
||||||
|
RENOVATE_ENDPOINT: "${CI_API_V4_URL}"
|
||||||
|
RENOVATE_LOG_FILE_LEVEL: "debug"
|
||||||
|
script:
|
||||||
|
- "renovate ${RENOVATE_EXTRA_FLAGS}"
|
||||||
|
stage: "renovate"
|
||||||
|
|
||||||
generate-release-version:
|
generate-release-version:
|
||||||
rules:
|
rules:
|
||||||
- if: >
|
- if: >
|
||||||
|
|||||||
@@ -28,24 +28,23 @@ repositories:
|
|||||||
# Include package files only within these defined paths
|
# Include package files only within these defined paths
|
||||||
includePaths:
|
includePaths:
|
||||||
- "helmfile/environments/default/images.yaml"
|
- "helmfile/environments/default/images.yaml"
|
||||||
- "helmfile/apps/**"
|
- "helmfile/environments/default/charts.yaml"
|
||||||
customManagers:
|
customManagers:
|
||||||
- customType: "regex"
|
- customType: "regex"
|
||||||
fileMatch:
|
fileMatch:
|
||||||
- "helmfile/environments/default/images.yaml"
|
- "helmfile/environments/default/images.yaml"
|
||||||
datasourceTemplate: "docker"
|
datasourceTemplate: "docker"
|
||||||
matchStrings:
|
matchStrings:
|
||||||
# yamllint disable rule:quoted-strings
|
- >
|
||||||
- '#\srenovate:\s[\s\S]*?registryUrl\=(?<registryUrl>.*?)\s[\s\S]*?dependencyType\=(?<depType>.*?)\s[\s\S]*?repository:\s\"(?<depName>.*?)\"\s[\s\S]*?tag:\s\"(?<currentValue>.*?)(?:(?:@|\\\s*@)(?<currentDigest>sha256:[a-f0-9]+)|\")'
|
# yamllint disable rule:line-length
|
||||||
# yamllint enable rule:quoted-strings
|
providerCategory: ["|']?(?<providerCategory>.+?)["|']?\n(?:.|\n|\r)+ registry: ["|']?(?<registryUrl>.+?)["|']?\n(?:.|\n|\r)+ repository: ["|']?(?<depName>.+?)["|']?\n(?:.|\n|\r)+ tag: ["|']?(?<currentValue>[^@]+)@(?<currentDigest>sha256:[a-f0-9]+)["|']
|
||||||
- customType: "regex"
|
- customType: "regex"
|
||||||
fileMatch:
|
fileMatch:
|
||||||
- "^helmfile\/apps"
|
|
||||||
- "helmfile/environments/default/charts.yaml"
|
- "helmfile/environments/default/charts.yaml"
|
||||||
matchStrings:
|
matchStrings:
|
||||||
|
- >
|
||||||
# yamllint disable rule:quoted-strings
|
# yamllint disable rule:quoted-strings
|
||||||
- '\#\srenovate:\s[\s\S]*?registryUrl\=(?<registryUrl>.*?)\s[\s\S]*?packageName\=(?<packageName>.*?)\s[\s\S]*?dataSource\=(?<datasource>.*?)\s[\s\S]*?dependencyType\=(?<depType>.*?)\s[\s\S]*?name:\s\"(?<depName>.*?)\"\s[\s\S]*?version\:\s\"(?<currentValue>.*?)\"'
|
providerCategory: ["|']?(?<providerCategory>.+?)["|']?\n(?:.|\n|\r)+ registry: ["|']?(?<registryUrl>.+?)["|']?\n(?:.|\n|\r)+ repository: ["|']?(?<depName>.+?)["|']?\n(?:.|\n|\r)+ name: ["|']?(?<FIGURE_THAT_OUT>.+?)["|']?\n(?:.|\n|\r)+ version: ["|']?(?<currentValue>.+?)["|']?
|
||||||
# yamllint enable rule:quoted-strings
|
|
||||||
# Rules for matching packages
|
# Rules for matching packages
|
||||||
packageRules:
|
packageRules:
|
||||||
- matchDatasources: "docker"
|
- matchDatasources: "docker"
|
||||||
|
|||||||
Reference in New Issue
Block a user