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 \