Skip to content

Commit 8833c1a

Browse files
tongossdmathieu
andauthored
Reference markdownlint docker image in dependencies.Dockerfile (#6582)
fix #6530 Co-authored-by: Damien Mathieu <[email protected]>
1 parent 10008fb commit 8833c1a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,10 @@ add-tags: verify-mods
319319
@[ "${MODSET}" ] || ( echo ">> env var MODSET is not set"; exit 1 )
320320
$(MULTIMOD) tag -m ${MODSET} -c ${COMMIT}
321321

322+
MARKDOWNIMAGE := $(shell awk '$$4=="markdown" {print $$2}' $(DEPENDENCIES_DOCKERFILE))
322323
.PHONY: lint-markdown
323324
lint-markdown:
324-
docker run --rm -u $(DOCKER_USER) -v "$(CURDIR):$(WORKDIR)" avtodev/markdown-lint:v1 -c $(WORKDIR)/.markdownlint.yaml $(WORKDIR)/**/*.md
325+
docker run --rm -u $(DOCKER_USER) -v "$(CURDIR):$(WORKDIR)" $(MARKDOWNIMAGE) -c $(WORKDIR)/.markdownlint.yaml $(WORKDIR)/**/*.md
325326

326327
.PHONY: verify-readmes
327328
verify-readmes:

dependencies.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# This is a renovate-friendly source of Docker images.
22
FROM python:3.13.2-slim-bullseye@sha256:c527a33e5265d0f830994d1b3237d38840a7b7986a8b9374a4b941ac34048190 AS python
33
FROM otel/weaver:v0.13.2@sha256:ae7346b992e477f629ea327e0979e8a416a97f7956ab1f7e95ac1f44edf1a893 AS weaver
4+
FROM avtodev/markdown-lint:v1@sha256:6aeedc2f49138ce7a1cd0adffc1b1c0321b841dc2102408967d9301c031949ee AS markdown

0 commit comments

Comments
 (0)