added hadolint-checks (#5)

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/miniflux-filter#5
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2021-11-03 18:55:00 +01:00
parent dcfb45f30a
commit 97ee6ee4c5
2 changed files with 7 additions and 0 deletions

View file

@ -11,6 +11,12 @@ if ! shellcheck ./filter.sh; then
exit 1
fi
if ! docker run --rm -i ghcr.io/hadolint/hadolint < dockerfile; then
echo "-----------------------------------"
echo "warning: fix hadolint errors"
exit 1
fi
# pruefe ob kw gesetzt ist
if [[ -z "$MF_DOCKERHUB_PASS" ]]; then
# shellcheck disable=SC2016

View file

@ -1,5 +1,6 @@
FROM ubuntu:focal
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y --no-install-recommends bash curl ca-certificates jq \
&& apt-get clean \