Skip to content

Commit

Permalink
feat: add support for ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
tvcsantos committed Jan 31, 2025
1 parent 86131b6 commit 788be70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 17 in script.sh

View workflow job for this annotation

GitHub Actions / runner / shellcheck

[shellcheck] reported by reviewdog 🐶 In POSIX sh, [[ ]] is undefined. Raw Output: ./script.sh:17:4: warning: In POSIX sh, [[ ]] is undefined. (ShellCheck.SC3010)
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::'

Expand Down

0 comments on commit 788be70

Please sign in to comment.