feat: add yamllint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2023-01-24 10:01:48 +01:00
parent 30c820bb85
commit 5a286f6889
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 10 additions and 2 deletions

View File

@ -12,9 +12,11 @@ ARG TARGETARCH
ARG TARGETVARIANT ARG TARGETVARIANT
ARG GOMPLATE_VERSION ARG GOMPLATE_VERSION
ARG SUPERCRONIC_VERSION
ARG URL_PARSER_VERSION ARG URL_PARSER_VERSION
ARG PRETTIER_VERSION ARG PRETTIER_VERSION
ARG SPELLCHECKER_VERSION
ARG JSBEAUTIFY_VERSION
ARG YAMLLINT_VERSION
# renovate: datasource=github-releases depName=hairyhenderson/gomplate # renovate: datasource=github-releases depName=hairyhenderson/gomplate
ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v3.11.3}" ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v3.11.3}"
@ -26,8 +28,10 @@ ENV PRETTIER_VERSION="${PRETTIER_VERSION:-2.8.3}"
ENV SPELLCHECKER_VERSION="${SPELLCHECKER_VERSION:-6.1.1}" ENV SPELLCHECKER_VERSION="${SPELLCHECKER_VERSION:-6.1.1}"
# renovate: datasource=npm depName=js-beautify # renovate: datasource=npm depName=js-beautify
ENV JSBEAUTIFY_VERSION="${JSBEAUTIFY_VERSION:-1.14.7}" ENV JSBEAUTIFY_VERSION="${JSBEAUTIFY_VERSION:-1.14.7}"
# renovate: datasource=pypi depName=yamllint
ENV YAMLLINT_VERSION="${YAMLLINT_VERSION:-1.28.0}"
RUN apk --update add curl make tar git && \ RUN apk --update add --no-cache python3 py3-pip curl make tar git && \
curl -SsfL -o /usr/local/bin/gomplate "https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_${TARGETOS}-${TARGETARCH}${TARGETVARIANT}" && \ curl -SsfL -o /usr/local/bin/gomplate "https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_${TARGETOS}-${TARGETARCH}${TARGETVARIANT}" && \
curl -SsfL -o /usr/local/bin/url-parser "https://github.com/thegeeklab/url-parser/releases/download/${URL_PARSER_VERSION}/url-parser-${TARGETOS}-${TARGETARCH}${TARGETVARIANT//v/-}" && \ curl -SsfL -o /usr/local/bin/url-parser "https://github.com/thegeeklab/url-parser/releases/download/${URL_PARSER_VERSION}/url-parser-${TARGETOS}-${TARGETARCH}${TARGETVARIANT//v/-}" && \
chmod 755 /usr/local/bin/gomplate && \ chmod 755 /usr/local/bin/gomplate && \
@ -36,6 +40,7 @@ RUN apk --update add curl make tar git && \
"prettier@$PRETTIER_VERSION" \ "prettier@$PRETTIER_VERSION" \
"spellchecker-cli@$SPELLCHECKER_VERSION" \ "spellchecker-cli@$SPELLCHECKER_VERSION" \
"js-beautify@$JSBEAUTIFY_VERSION" && \ "js-beautify@$JSBEAUTIFY_VERSION" && \
pip install -qq --no-cache-dir yamllint=="$YAMLLINT_VERSION" && \
rm -rf /var/cache/apk/* && \ rm -rf /var/cache/apk/* && \
rm -rf /tmp/* rm -rf /tmp/*

View File

@ -19,6 +19,9 @@ Custom Alpine image including a common toolset.
- gomplate - gomplate
- url-parser - url-parser
- prettier - prettier
- spellchecker-cli
- js-beautify
- yamllint
## License ## License