diff --git a/.gitignore b/.gitignore index 4c49bd7..1c18c86 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .env +.github.env diff --git a/config-github.json b/config-github.json new file mode 100644 index 0000000..c96a3d8 --- /dev/null +++ b/config-github.json @@ -0,0 +1,42 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "platform": "github", + "autodiscover": true, + "autodiscoverFilter": ["kjuulh/*"], + "automerge": true, + "automergeType": "pr", + "extends": [ + "config:base" + ], + "hostRules": [ + { + "hostType": "docker", + "matchHost": "harbor.server.kjuulh.io", + "username": "admin", + "password": "{{ secrets.HARBOR_SERVER_PASSWORD }}" + } + ], + "packageRules": [ + { + "matchDatasources": ["docker"], + "registryUrls": ["https://harbor.server.kjuulh.io/docker-proxy/library/"] + }, + { + "groupName": "all dependencies", + "separateMajorMinor": false, + "groupSlug": "all", + "packageRules": [ + { + "matchPackagePatterns": [ + "*" + ], + "groupName": "all dependencies", + "groupSlug": "all" + } + ], + "lockFileMaintenance": { + "enabled": false + } + } + ] +} diff --git a/config.json b/config.json index c6039b3..429b1b9 100644 --- a/config.json +++ b/config.json @@ -17,6 +17,10 @@ } ], "packageRules": [ + { + "matchDatasources": ["docker"], + "registryUrls": ["https://harbor.server.kjuulh.io/docker-proxy/library/"] + }, { "groupName": "all dependencies", "separateMajorMinor": false, diff --git a/docker-compose.yaml b/docker-compose.yaml index bae3b39..8e1b85f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,7 +2,7 @@ version: '3' services: renovate: - image: renovate/renovate:34.23.1 + image: renovate/renovate:34 env_file: .env restart: always environment: @@ -10,3 +10,13 @@ services: LOG_LEVEL: info volumes: - "./config.json:/opt/renovate/config.json" + + renovate_github: + image: renovate/renovate:34 + env_file: .github.env + restart: always + environment: + RENOVATE_CONFIG_FILE: "/opt/renovate/config-github.json" + LOG_LEVEL: info + volumes: + - "./config-github.json:/opt/renovate/config-github.json"