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 stages: - linting - test + - renovate - build_container variables: @@ -44,4 +45,14 @@ build-docker: - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.production --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG only: - tags - - master \ No newline at end of file + - master + +renovate: + stage: renovate + variables: + RENOVATE_TOKEN: $GITLAB_API_TOKEN + image: + name: renovate/renovate:19 + entrypoint: [''] + script: + - 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 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "commitMessagePrefix": "RenovateBot: ", + "packageRules": [ + { + "updateTypes": ["minor", "patch", "pin", "digest"], + "automerge": true + } + ] +} \ No newline at end of file