mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-04-28 03:32:27 +00:00
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:
parent
3a74e1228e
commit
5cc395bfa5
10
Earthfile
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user