hurl/bin/check/hadolint.sh
2022-11-30 16:43:02 +01:00

9 lines
255 B
Bash
Executable File

#!/bin/bash
set -eu
docker_file="$1"
version="2.12.0"
wget --quiet --output-document /tmp/hadolint "https://github.com/hadolint/hadolint/releases/download/v${version}/hadolint-Linux-x86_64"
chmod +x /tmp/hadolint
/tmp/hadolint --verbose "${docker_file}"