diff --git a/lint.Dockerfile b/Dockerfile similarity index 76% rename from lint.Dockerfile rename to Dockerfile index 6747d0e..ce79588 100644 --- a/lint.Dockerfile +++ b/Dockerfile @@ -7,10 +7,11 @@ find . -name Dockerfile -exec hadolint {} + # ========================================================= FROM koalaman/shellcheck-alpine:v0.10.0 AS shellcheck +SHELL ["/bin/ash", "-euo", "pipefail", "-c"] WORKDIR /src RUN --mount=target=. \ shellcheck --version && \ -find . -name .git -prune -o -type f -executable -print | xargs -r grep -rlE '^#!/bin/(ba)?sh' | xargs -r shellcheck +find . -name .git -prune -o -type f -executable -print0 | xargs -r0 grep -rlE '^#!/bin/(ba)?sh' | xargs -r shellcheck # ========================================================= FROM toolhippie/yamllint:1.35.1 AS yamllint diff --git a/docker-bake.hcl b/docker-bake.hcl index 765f082..e9aa859 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -3,7 +3,6 @@ group "default" { } target "_lint" { - dockerfile = "lint.Dockerfile" output = ["type=cacheonly"] }