From 788be701f00f0f9d5ef7128f4779c44d559f830f Mon Sep 17 00:00:00 2001 From: Tiago Santos Date: Fri, 31 Jan 2025 20:24:39 +0000 Subject: [PATCH] feat: add support for ARM64 --- script.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/script.sh b/script.sh index 9171bb6..53ddc7b 100755 --- a/script.sh +++ b/script.sh @@ -12,7 +12,13 @@ curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.s echo '::endgroup::' echo '::group:: Installing hadolint ... https://github.com/hadolint/hadolint' -wget -q https://github.com/hadolint/hadolint/releases/download/$HADOLINT_VERSION/hadolint-Linux-x86_64 -O $TEMP_PATH/hadolint \ +HADOLINT_FILE="hadolint-Linux-x86_64" + +if [[ "$RUNNER_ARCH" = "ARM64" ]]; then + HADOLINT_FILE="hadolint-Linux-ARM64" +fi + +wget -q "https://github.com/hadolint/hadolint/releases/download/$HADOLINT_VERSION/$HADOLINT_FILE" -O $TEMP_PATH/hadolint \ && chmod +x $TEMP_PATH/hadolint echo '::endgroup::'