Skip to content

Commit daa1f93

Browse files
Pin uv version in tagger (DataDog#23830)
* Pin uv version in tagger * Add custom matcher for renovate * Remove outdated comment * Renovate config migration * Make the manager more generic
1 parent ae6846b commit daa1f93

2 files changed

Lines changed: 34 additions & 5 deletions

File tree

.gitlab/tagger/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.ddbuild.io/images/mirror/ubuntu:25.04
22

33
# Get uv — manages Python installations on demand, no system Python pinning needed
4-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
4+
COPY --from=ghcr.io/astral-sh/uv:0.11.16@sha256:440fd6477af86a2f1b38080c539f1672cd22acb1b1a47e321dba5158ab08864d /uv /usr/local/bin/uv
55

66
# Update sources and install required packages
77
RUN apt-get update \
@@ -30,8 +30,6 @@ RUN mkdir -p ~/.ssh \
3030
&& ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
3131

3232
# dd-octo-sts CLI for GitHub token exchange (replaces SSH deploy key)
33-
# To update: crane ls registry.ddbuild.io/dd-octo-sts | sort -V | tail -1
34-
# crane digest registry.ddbuild.io/dd-octo-sts:<version>
3533
COPY --from=registry.ddbuild.io/dd-octo-sts:v1.10.4@sha256:20edc79b3fc3f9cd58eb0aeba7391a8e63ccb79c0b969a4a62a745cf5b2e39c2 /usr/local/bin/dd-octo-sts /usr/local/bin/dd-octo-sts
3634

3735
# Locales are required to be set to use click

renovate.json

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,25 @@
77
"customManagers": [
88
{
99
"customType": "regex",
10-
"fileMatch": [
11-
"^\\.github/workflows/[^/]+\\.ya?ml$"
10+
"managerFilePatterns": [
11+
"/^\\.github/workflows/[^/]+\\.ya?ml$/"
1212
],
1313
"matchStrings": [
1414
"(?<depName>[a-zA-Z][a-zA-Z0-9._-]*)==(?<currentValue>[0-9]+(?:\\.[0-9]+){1,2})",
1515
"# renovate: datasource=(?<datasource>[a-z-]+) depName=(?<depName>[a-zA-Z][a-zA-Z0-9._-]*)\\s+[A-Z][A-Z0-9_]*: \"(?<currentValue>[0-9]+(?:\\.[0-9]+){1,2})\""
1616
],
1717
"datasourceTemplate": "pypi"
18+
},
19+
{
20+
"customType": "regex",
21+
"description": "Track image:tag@digest references in Dockerfiles.",
22+
"managerFilePatterns": [
23+
"/^\\.gitlab/tagger/Dockerfile$/"
24+
],
25+
"matchStrings": [
26+
"(?:COPY --from=|FROM )(?<depName>[^\\s:@]+):(?<currentValue>[^\\s@]+)@(?<currentDigest>sha256:[a-f0-9]+)"
27+
],
28+
"datasourceTemplate": "docker"
1829
}
1930
],
2031
"packageRules": [
@@ -108,6 +119,9 @@
108119
"matchManagers": [
109120
"custom.regex"
110121
],
122+
"matchFileNames": [
123+
".github/workflows/**"
124+
],
111125
"groupName": "workflow python deps",
112126
"schedule": [
113127
"before 6am on Monday"
@@ -117,6 +131,23 @@
117131
"qa/skip-qa"
118132
],
119133
"minimumReleaseAge": "7 days"
134+
},
135+
{
136+
"matchManagers": [
137+
"custom.regex"
138+
],
139+
"matchDatasources": [
140+
"docker"
141+
],
142+
"groupName": "docker images",
143+
"schedule": [
144+
"before 6am on Monday"
145+
],
146+
"labels": [
147+
"renovate/docker-images",
148+
"qa/skip-qa"
149+
],
150+
"minimumReleaseAge": "7 days"
120151
}
121152
]
122153
}

0 commit comments

Comments
 (0)