Skip to content

Commit 1fcee9c

Browse files
authored
improve Renovate for Makefile versioning to use digest (#449)
1 parent 302699a commit 1fcee9c

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SHELL := /bin/bash
33
.DEFAULT_GOAL := all
44

55
# renovate: datasource=docker depName=ghcr.io/igorshubovych/markdownlint-cli versioning=docker
6-
MARKDOWNLINT_VERSION = v0.47.0
6+
MARKDOWNLINT_VERSION = sha256:b771097d3d9ec6b368fefcea5f0c05c8710293d9251fca17e31c8e10987b50ef # v0.46.0
77

88
.PHONY: all
99
all: ## build pipeline
@@ -26,7 +26,7 @@ mdlint: ## markdownlint
2626
ifneq ($(filter 1 true,$(SKIP_DOCKER)),)
2727
@echo "Skipping $(@) per SKIP_DOCKER=$(SKIP_DOCKER)"
2828
else
29-
docker run --rm -v "$(PWD):/workdir" ghcr.io/igorshubovych/markdownlint-cli:$(MARKDOWNLINT_VERSION) "**/*.md"
29+
docker run --rm -v "$(PWD):/workdir" ghcr.io/igorshubovych/markdownlint-cli@$(MARKDOWNLINT_VERSION) "**/*.md"
3030
endif
3131

3232
.PHONY: clean

renovate.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,19 @@
66
],
77
"postUpdateOptions": [
88
"gomodTidy"
9-
]
9+
],
10+
"customManagers": [
11+
{
12+
"customType": "regex",
13+
"managerFilePatterns": [
14+
"/(^|/)Makefile$/",
15+
"/(^|/)makefile$/",
16+
"/(^|/)GNUMakefile$/",
17+
"/\\.mk$/"
18+
],
19+
"matchStrings": [
20+
"# renovate: datasource=(?<datasource>[a-zA-Z0-9-._]+?) depName=(?<depName>[^\\s]+?)(?: (?:packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:*\\??=\\s*[\"']?(?<currentDigest>.+?)[\"']?\\s+#\\s+(?<currentValue>.+?)\\s"
21+
]
22+
}
23+
]
1024
}

0 commit comments

Comments
 (0)