Skip to content

Commit

Permalink
Validate renovate config file during lint
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sdwilsh committed Feb 8, 2023
1 parent 40772d2 commit a2cc78a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a2cc78a

Please sign in to comment.