Validate renovate config file during lint (#848)

Now that the config is more than the stock config, and folks are
interested in using it more, we should have some automation to verify
that the config is valid.

Signed-off-by: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com>
This commit is contained in:
Shawn Wilsher 2023-02-08 15:55:09 -08:00 committed by GitHub
parent 40772d2d67
commit 4d28f3b87f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,8 @@ ARG GOLINT_VERSION=1.47.3
ARG GO_VERSION=1.18
# renovate: datasource=docker depName=hadolint/hadolint versioning=docker
ARG HADOLINT_VERSION=2.12.0-alpine
# renovate: datasource=docker depName=renovate/renovate
ARG RENOVATE_VERSION=34
all:
BUILD +docker
@ -162,9 +164,17 @@ hadolint:
RUN ls
RUN find . -name "Dockerfile*" -print | xargs -r -n1 hadolint
renovate-validate:
ARG RENOVATE_VERSION
FROM renovate/renovate:$RENOVATE_VERSION
WORKDIR /usr/src/app
COPY renovate.json .
RUN renovate-config-validator
lint:
BUILD +golint
BUILD +hadolint
BUILD +renovate-validate
luet:
FROM quay.io/luet/base:$LUET_VERSION