Commit 7990fde5 authored by Nejc Habjan's avatar Nejc Habjan Committed by Michael Kriese
Browse files

chore(ci): support non-dind workflows

[skip ci]
parent e315bda0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
include: '/templates/.gitlab-ci.yml'
include: '/templates/renovate-dind.gitlab-ci.yml'


renovate:dry-run:
+11 −2
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ Create a `.gitlab-ci.yml` file in the repository like the following:
```yaml
include:
  - project: 'renovate-bot/renovate-runner'
    file: '/templates/.gitlab-ci.yml'
    file: '/templates/renovate-dind.gitlab-ci.yml'

variables:
  LOG_LEVEL: debug
@@ -50,6 +50,15 @@ renovate:on-schedule:

```

Alternatively, if you cannot use privileged runners, include the following template instead:

```yaml
include:
  - project: 'renovate-bot/renovate-runner'
    file: '/templates/renovate.gitlab-ci.yml'

```

## Configure the Schedule

Add a schedule (`CI / CD` > `Schedules`) to run Renovate regularly.
@@ -59,6 +68,6 @@ The following sample run it every hour on third minute: `3 * * * *`.

## Other config options

We've changed some renovate defaults for GitLab to better reflect the App's default behavior, so please see [here](./templates/.gitlab-ci.yml#L3) for changed options.
We've changed some renovate defaults for GitLab to better reflect the App's default behavior, so please see [here](./templates/_common.gitlab-ci.yml#L1) for changed options.

For other self-hosted gitlab samples you can checkout [here](https://github.com/renovatebot/docker-renovate/blob/master/docs/gitlab.md).
+0 −8
Original line number Diff line number Diff line
image: renovate/renovate:23.89.3-slim

variables:
  RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate
  RENOVATE_ENDPOINT: $CI_API_V4_URL
@@ -14,12 +12,7 @@ variables:
  RENOVATE_IGNORE_PR_AUTHOR: 'true'
  RENOVATE_EXTENDS: 'github>whitesource/merge-confidence:beta'
  LOG_LEVEL: debug
  DOCKER_DRIVER: overlay2
  DOCKER_TLS_CERTDIR: ""
  DOCKER_HOST: tcp://docker:2375

services:
  - docker:19.03.13-dind

cache:
  key: ${CI_COMMIT_REF_SLUG}-renovate
@@ -33,4 +26,3 @@ renovate:
    - schedules
  script:
    - renovate $RENOVATE_EXTRA_FLAGS
+11 −0
Original line number Diff line number Diff line
include: '/templates/_common.gitlab-ci.yml'

image: renovate/renovate:23.89.3-slim

services:
  - docker:19.03.13-dind

variables:
  DOCKER_DRIVER: overlay2
  DOCKER_TLS_CERTDIR: ""
  DOCKER_HOST: tcp://docker:2375
+3 −0
Original line number Diff line number Diff line
include: '/templates/_common.gitlab-ci.yml'

image: renovate/renovate:23.89.3