Unverified Commit e2134109 authored by Michael Kriese's avatar Michael Kriese
Browse files

feat!: restructure templates

BREAKING CHANGE: Cache and image config is moved to a job template.
parent a227e723
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.75.0-slim@sha256:fa4f7db80ddbf62e3f29ec6d909c70d10350bb0fa6747f288628d68a4469dc87
  CI_RENOVATE_IMAGE_FULL: ghcr.io/renovatebot/renovate:35.75.0@sha256:7a2de5bf038741c74bf8d40684c51ed7701fdadc611eda32344334d34a9ad563

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}