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/.gitlab-ci.yml

81 lines
2.1 KiB
YAML

include:
- '/templates/renovate.gitlab-ci.yml'
- '/templates/renovate-config-validator.gitlab-ci.yml'
variables:
RENOVATE_GIT_AUTHOR: Renovate Bot <bot@renovateapp.com>
RENOVATE_CONFIG_VALIDATOR_EXTRA_FLAGS: default.json .gitlab/renovate.json
RENOVATE_X_SQLITE_PACKAGE_CACHE: true
stages:
- test
- deploy
- release
workflow:
rules:
# Don't build push pipeline when open MR and not renovate branch
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_COMMIT_BRANCH !~ /^renovate\//
when: never
# Don't build MR pipeline when renovate branch
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^renovate\//
when: never
# Don't build tags
- if: $CI_COMMIT_TAG
when: never
- when: always
renovate:dry-run:
extends: .renovate
variables:
RENOVATE_DRY_RUN: full
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- when: always
renovate-config-validator:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- when: always
lint:
image: ghcr.io/containerbase/node:22.14.0@sha256:ea0c2cf3d5c850a3f85b5c9189f57db56531c9f8b36a03e1867f0d06c092fa53
cache:
key:
files:
- package-lock.json
paths:
- .npm/
before_script:
- npm ci --cache .npm --prefer-offline
script:
- npm run prettier
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- when: always
release:
image: ghcr.io/containerbase/node:22.14.0@sha256:ea0c2cf3d5c850a3f85b5c9189f57db56531c9f8b36a03e1867f0d06c092fa53
stage: release
cache:
key:
files:
- package-lock.json
paths:
- .npm/
variables:
GIT_AUTHOR_EMAIL: bot@renovateapp.com
GIT_COMMITTER_EMAIL: bot@renovateapp.com
GIT_DEPTH: '0'
before_script:
- npm ci --cache .npm --prefer-offline
- git config --global --add safe.directory $PWD
script:
- npx --no-install semantic-release
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH