From 41458d1442933df8f9ccd0158454b1189734a2a4 Mon Sep 17 00:00:00 2001 From: Matthew McKinnon Date: Tue, 7 Oct 2025 21:10:44 +1000 Subject: [PATCH] chore: update renovate.json for custom registry --- ansible/group_vars/all.yml | 4 ++-- renovate.json | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 8527dc0..1a89ec2 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -14,6 +14,6 @@ install_packages: - unattended-upgrades data_folder: /data -alpine_latest_image: "alpine:latest" -ubuntu_latest_image: "node:22-trixie" +alpine_latest_image: "alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1" +ubuntu_latest_image: "node:22-trixie@sha256:66fdea746582c4b9678414c13aef9d93839f992e4ea6ffbef7f0785e22312bbd" debian_latest_image: "git.comprofix.com/mmckinnon/debian-latest:2025.08.31-093853" diff --git a/renovate.json b/renovate.json index 3a66dc1..0baa996 100644 --- a/renovate.json +++ b/renovate.json @@ -7,13 +7,18 @@ "ignoreDeps": ["postgres"], "regexManagers": [ { - "fileMatch": ["^.*\\.yml$", "^.*\\.yaml$"], + "fileMatch": ["group_vars/all.yml"], "matchStrings": [ "^(\\s*\\w+_latest_image:\\s*\"?)(?[^\\s\"]+)(\"?)" ], "datasourceTemplate": "docker", - "depNameTemplate": "{{ currentValue }}", - "versioningTemplate": "docker" + "depNameTemplate": "{{ currentValue | regexReplace('@sha256:.*$', '') }}", + "versioningTemplate": "docker", + "extractVersionTemplate": "{{ currentValue | regexReplace('.*:(.*)$', '$1') }}", + "registryUrls": [ + "https://index.docker.io/v2/", + "https://git.comprofix.com/v2/" + ] } ] }