add options to mamage repos
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-10-11 22:16:17 +02:00
parent b07226127c
commit 7620435ad3
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
3 changed files with 20 additions and 1 deletions

View File

@ -13,6 +13,13 @@ renovatebot_interval: daily
# @end # @end
# @var renovatebot_github_token: $ "_unset_" # @var renovatebot_github_token: $ "_unset_"
renovatebot_autodiscover: False renovatebot_autodiscover: False
# @var renovatebot_autodiscover_filter:description: >
# A [minimatch](https://www.npmjs.com/package/minimatch) glob-style pattern for filtering
# autodiscovered repositories. The sessing only works if `renovatebot_autodiscover` is enabled.
# @end
# @var renovatebot_autodiscover_filter:example: $ "project/*"
# @var renovatebot_autodiscover_filter: $ "_unset_"
renovatebot_repositories: []
renovatebot_endpoint: "https://github.company.com/api/v3" renovatebot_endpoint: "https://github.company.com/api/v3"
renovatebot_git_author: "Renovate Bot <bot@renovateapp.com>" renovatebot_git_author: "Renovate Bot <bot@renovateapp.com>"
renovatebot_platform: github renovatebot_platform: github

View File

@ -10,6 +10,9 @@
- python-virtualenv - python-virtualenv
renovatebot_service_stopped: True renovatebot_service_stopped: True
renovatebot_token: personal-access-token renovatebot_token: personal-access-token
renovatebot_repositories:
- ansible/test
- project/demo
roles: roles:
- role: xoxys.docker_engine - role: xoxys.docker_engine

View File

@ -3,9 +3,18 @@
{% if renovatebot_github_token is defined %} {% if renovatebot_github_token is defined %}
GITHUB_COM_TOKEN={{ renovatebot_github_token }} GITHUB_COM_TOKEN={{ renovatebot_github_token }}
{% endif %} {% endif %}
RENOVATE_AUTODISCOVER={{ renovatebot_autodiscover | bool | lower }}
RENOVATE_ENDPOINT={{ renovatebot_endpoint }} RENOVATE_ENDPOINT={{ renovatebot_endpoint }}
RENOVATE_GIT_AUTHOR={{ renovatebot_git_author }} RENOVATE_GIT_AUTHOR={{ renovatebot_git_author }}
RENOVATE_PLATFORM={{ renovatebot_platform }} RENOVATE_PLATFORM={{ renovatebot_platform }}
RENOVATE_TOKEN={{ renovatebot_token }} RENOVATE_TOKEN={{ renovatebot_token }}
RENOVATE_AUTODISCOVER={{ renovatebot_autodiscover | bool | lower }}
{% if renovatebot_autodiscover | bool %}
{% if renovatebot_autodiscover_filter is defined %}
RENOVATE_AUTODISCOVER_FILTER={{ renovatebot_autodiscover_filter }}
{% endif %}
{% elif renovatebot_repositories | length > 0 %}
RENOVATE_REPOSITORIES={{ renovatebot_repositories | to_json }}
{% endif %}