Commit 04a571c8 authored by Michael Kriese's avatar Michael Kriese
Browse files

feat!: restructure templates (renovate-bot/renovate-runner!1696)

BREAKING CHANGE: Cache and image config is moved to a job template.
parent 93a03d63
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -24,8 +24,9 @@ workflow:
    - when: always

renovate:dry-run:
  script:
    - renovate --dry-run=full $RENOVATE_EXTRA_FLAGS
  extends: .renovate
  variables:
    RENOVATE_DRY_RUN: full
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"
      when: never
@@ -62,8 +63,8 @@ release:
    GIT_COMMITTER_EMAIL: bot@renovateapp.com
  before_script:
    - npm ci --cache .npm --prefer-offline
  script:
    - git config --global --add safe.directory $PWD
  script:
    - npx --no-install semantic-release
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"
+2 −1
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ include:
    - project: 'renovate-bot/renovate-runner'
      file: '/templates/renovate.gitlab-ci.yml'

renovate:
    image: ${CI_RENOVATE_IMAGE_FULL}
```

+2 −1
Original line number Diff line number Diff line
@@ -6,4 +6,5 @@ variables:
renovate-config-validator:
  stage: test
  image: $CI_RENOVATE_IMAGE
  script: renovate-config-validator
  script:
    - renovate-config-validator
+0 −1
Original line number Diff line number Diff line
include: '/templates/renovate.gitlab-ci.yml'

deprecated:
  image: alpine@sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517
  stage: test
  script:
    - echo "This template is deprecated! Use '/templates/renovate.gitlab-ci.yml' instead."
+5 −5
Original line number Diff line number Diff line
@@ -15,23 +15,23 @@ variables:
  CI_RENOVATE_IMAGE: ghcr.io/renovatebot/renovate:35.78.0-slim@sha256:945b399cc0851973470b15c2cfeb0bdda057afcb4a268e02a154172d9dabba9f
  CI_RENOVATE_IMAGE_FULL: ghcr.io/renovatebot/renovate:35.79.1@sha256:071114e7dca65b04f24c0ad797acd8b01b96f4f16d9d35fe448f1bf5bbd83435

default:
.renovate:
  cache:
    key: ${CI_COMMIT_REF_SLUG}-renovate
    paths:
      - renovate/cache/renovate/repository/
  image: ${CI_RENOVATE_IMAGE}
  script:
    - renovate $RENOVATE_EXTRA_FLAGS

renovate:
  extends: .renovate
  stage: deploy
  resource_group: production
  rules:
    - if: '$CI_PIPELINE_SOURCE == "schedule"'
  script:
    - renovate $RENOVATE_EXTRA_FLAGS
  artifacts:
    when: always
    expire_in: 1d
    paths:
      - '$RENOVATE_LOG_FILE'

image: ${CI_RENOVATE_IMAGE}