From 570dbb9a24a7357dfaf10017f178ff60b40a5bbc Mon Sep 17 00:00:00 2001 From: DrMxrcy <58747968+DrMxrcy@users.noreply.github.com> Date: Tue, 2 May 2023 20:34:59 -0400 Subject: [PATCH] Pass Variables via a JS Config File (#446) * Pass Variables via a JS Config File * Create renovate.js --- .github/workflows/renovate.yml | 1 + renovate.js | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 renovate.js diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index b3200098..3c54e059 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -28,6 +28,7 @@ jobs: uses: renovatebot/github-action@v32.118.0 with: token: ${{ secrets.RENOVATE_TOKEN }} + configFile: renovate.js env: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/renovate.js b/renovate.js new file mode 100644 index 00000000..9d21199e --- /dev/null +++ b/renovate.js @@ -0,0 +1,30 @@ +module.exports = { + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ], + "gitIgnoredAuthors": [ + "githubaction@githubaction.com" + ], + "dependencyDashboard": true, + "enabledManagers": ["docker-compose", "dockerfile"], + "hostRules": [ + { + "matchHost": "index.docker.io", + "hostType": "docker", + "username": process.env.DOCKERHUB_USERNAME, + "password": process.env.DOCKERHUB_TOKEN + }, + { + "matchHost": "docker.io", + "concurrentRequestLimit": 2 + } + ], + "packageRules": [ + { + "managers": ["docker-compose", "dockerfile"], + "packagePatterns": ["^([^\\/]+\\/)?(mysql|mariadb|mongodb|mongo|postgres|redis)(:|$)"], + "enabled": false + } + ] +};