From 4d28f3b87f60fe7a0daec1ca19f12d85d5d4e78c Mon Sep 17 00:00:00 2001 From: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com> Date: Wed, 8 Feb 2023 15:55:09 -0800 Subject: [PATCH] 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> --- Earthfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Earthfile b/Earthfile index a4543223..11f0642b 100644 --- a/Earthfile +++ b/Earthfile @@ -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