We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd3ce39 commit 37f4c67Copy full SHA for 37f4c67
dev.sh
@@ -13,9 +13,12 @@ set -eo pipefail
13
IMAGE_NAME="zenika/terraform-aws-cli"
14
[[ -n $3 ]] && IMAGE_TAG=$3 || IMAGE_TAG="dev"
15
16
+# Set platform for Hadolint image
17
+[[ "$(uname -m)" == "arm64" ]] && PLATFORM="linux/arm64" || PLATFORM="linux/amd64"
18
+
19
# Lint Dockerfile
20
echo "Linting Dockerfile..."
-docker run --rm --interactive --volume "${PWD}":/data --workdir /data hadolint/hadolint:2.5.0-alpine /bin/hadolint --config hadolint.yaml Dockerfile
21
+docker run --rm --interactive --volume "${PWD}":/data --workdir /data --platform "${PLATFORM}" hadolint/hadolint:2.12.0-alpine /bin/hadolint --config hadolint.yaml Dockerfile
22
echo "Lint Successful!"
23
24
# Build image
0 commit comments