Skip to content

Commit

Permalink
build: Disable hadolint, adjust subdirs
Browse files Browse the repository at this point in the history
hadolint doesn't yet support experimental `RUN --mount` syntax.

Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
  • Loading branch information
errordeveloper committed Jul 3, 2020
1 parent 35ea3ac commit 3e6765c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions images/scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ MAKER_IMAGE="${MAKER_IMAGE:-docker.io/cilium/image-maker:bc81755ec8f6c5afcb10a41
root_dir="$(git rev-parse --show-toplevel)"

if [ -z "${MAKER_CONTAINER+x}" ] ; then
exec docker run --rm --volume "${root_dir}:/src" --workdir /src "${MAKER_IMAGE}" "/src/scripts/$(basename "${0}")"
exec docker run --rm --volume "${root_dir}:/src" --workdir /src/images "${MAKER_IMAGE}" "/src/images/scripts/$(basename "${0}")"
fi

find . -name '*.sh' -exec shellcheck {} +
find . -name Dockerfile -exec hadolint {} +

0 comments on commit 3e6765c

Please sign in to comment.