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-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"