From 97ee6ee4c5421ea86cc7c88c69f74dd9f7f4be20 Mon Sep 17 00:00:00 2001 From: mg Date: Wed, 3 Nov 2021 18:55:00 +0100 Subject: [PATCH] added hadolint-checks (#5) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/miniflux-filter/pulls/5 Co-authored-by: mg Co-committed-by: mg --- build.sh | 6 ++++++ dockerfile | 1 + 2 files changed, 7 insertions(+) diff --git a/build.sh b/build.sh index 9caa530..20ff429 100755 --- a/build.sh +++ b/build.sh @@ -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 diff --git a/dockerfile b/dockerfile index 1fd4b0b..5bb8242 100644 --- a/dockerfile +++ b/dockerfile @@ -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 \