From 7872dd4cbf2bae72fc32716bc580dc31e65a4f61 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 25 Sep 2025 07:23:20 -0400 Subject: [PATCH] Adding hostRules for registry authentications. --- default.json | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/default.json b/default.json index b666d84..fb73fd0 100644 --- a/default.json +++ b/default.json @@ -38,9 +38,6 @@ "ansible", "ansible-galaxy" ], - "ansible": { - "managerFilePatterns": ["/^(?!requirements\\.ya?ml$).*\\.ya?ml$/"] - }, "major": { "dependencyDashboardApproval": true }, @@ -48,10 +45,34 @@ "dependencyDashboardApproval": true }, "versioning": "docker", + "hostRules": [ + { + "description": "Docker Hub authentication", + "hostType": "docker", + "matchHost": "docker.io", + "username": "{{ env.DOCKER_HUB_USER }}", + "password": "{{ env.DOCKER_HUB_PASS }}" + }, + { + "description": "GitHub Container Registry (GHCR)", + "hostType": "docker", + "matchHost": "ghcr.io", + "username": "{{ env.GHCR_USER }}", + "password": "{{ env.GHCR_TOKEN }}" + }, + { + "description": "Self-hosted Gitea Docker Registry", + "hostType": "docker", + "matchHost": "git.trez.wtf", + "username": "{{ env.GITEA_BOT_USER }}", + "password": "{{ env.GITEA_BOT_PASS }}" + } + ], "packageRules": [ { "description": "Alpine-based images only update to Alpine-based versions", "matchDatasources": ["docker"], + "versioning": "docker", "matchManagers": ["docker-compose"], "matchPackageNames": [".*"], "allowedVersions": "/alpine/i"