Adding hostRules for registry authentications.

This commit is contained in:
2025-09-25 07:23:20 -04:00
parent c64536fb70
commit 7872dd4cbf
+24 -3
View File
@@ -38,9 +38,6 @@
"ansible", "ansible",
"ansible-galaxy" "ansible-galaxy"
], ],
"ansible": {
"managerFilePatterns": ["/^(?!requirements\\.ya?ml$).*\\.ya?ml$/"]
},
"major": { "major": {
"dependencyDashboardApproval": true "dependencyDashboardApproval": true
}, },
@@ -48,10 +45,34 @@
"dependencyDashboardApproval": true "dependencyDashboardApproval": true
}, },
"versioning": "docker", "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": [ "packageRules": [
{ {
"description": "Alpine-based images only update to Alpine-based versions", "description": "Alpine-based images only update to Alpine-based versions",
"matchDatasources": ["docker"], "matchDatasources": ["docker"],
"versioning": "docker",
"matchManagers": ["docker-compose"], "matchManagers": ["docker-compose"],
"matchPackageNames": [".*"], "matchPackageNames": [".*"],
"allowedVersions": "/alpine/i" "allowedVersions": "/alpine/i"