hurl/bin/check/hadolint.sh

10 lines
267 B
Bash
Raw Normal View History

2022-11-30 18:31:18 +03:00
#!/bin/bash
set -Eeuo pipefail
2022-11-30 18:31:18 +03:00
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}"