forked from NiX/docker-linter
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
204 B
14 lines
204 B
#!/usr/bin/env bash
|
|
|
|
RET=0
|
|
|
|
CUR_DIR=$(pwd)
|
|
DOCKER_FILES=$(find "${CUR_DIR}" -type f -iname 'Dockerfile*')
|
|
|
|
for DKR_F in ${DOCKER_FILES[*]}; do
|
|
hadolint "${DKR_F}" \
|
|
|| RET=${?}
|
|
done
|
|
|
|
exit ${RET}
|
|
|