diff options
| -rw-r--r-- | .gitlab-ci.yml | 13 | ||||
| -rw-r--r-- | renovate.json | 10 |
2 files changed, 22 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b7e2440..94f1633 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -3,6 +3,7 @@ image: debian:testing | |||
| 3 | stages: | 3 | stages: |
| 4 | - linting | 4 | - linting |
| 5 | - test | 5 | - test |
| 6 | - renovate | ||
| 6 | - build_container | 7 | - build_container |
| 7 | 8 | ||
| 8 | variables: | 9 | variables: |
| @@ -44,4 +45,14 @@ build-docker: | |||
| 44 | - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.production --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG | 45 | - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.production --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG |
| 45 | only: | 46 | only: |
| 46 | - tags | 47 | - tags |
| 47 | - master \ No newline at end of file | 48 | - master |
| 49 | |||
| 50 | renovate: | ||
| 51 | stage: renovate | ||
| 52 | variables: | ||
| 53 | RENOVATE_TOKEN: $GITLAB_API_TOKEN | ||
| 54 | image: | ||
| 55 | name: renovate/renovate:19 | ||
| 56 | entrypoint: [''] | ||
| 57 | script: | ||
| 58 | - node /usr/src/app/dist/renovate.js --platform gitlab --endpoint ${CI_API_V4_URL} --token ${GITLAB_API_TOKEN} ${CI_PROJECT_PATH} \ No newline at end of file | ||
diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..144227e --- /dev/null +++ b/renovate.json | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | { | ||
| 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| 3 | "commitMessagePrefix": "RenovateBot: ", | ||
| 4 | "packageRules": [ | ||
| 5 | { | ||
| 6 | "updateTypes": ["minor", "patch", "pin", "digest"], | ||
| 7 | "automerge": true | ||
| 8 | } | ||
| 9 | ] | ||
| 10 | } \ No newline at end of file | ||
