ci: support x86 in the checks
All checks were successful
actionlint check / actionlint check (pull_request) Successful in 22s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 1m8s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 56s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 1m15s
GitLeaks check / GitLeaks check (pull_request) Successful in 12s
hadolint check / hadolint check (pull_request) Successful in 21s
markdownlint check / markdownlint check (pull_request) Successful in 35s
htmlhint check / htmlhint check (pull_request) Successful in 41s
Prettier check / Prettier check (pull_request) Successful in 28s
ShellCheck check / ShellCheck check (pull_request) Successful in 46s
Stylelint check / Stylelint check (pull_request) Successful in 42s
checkov check / checkov check (pull_request) Successful in 2m48s
yamllint check / yamllint check (pull_request) Successful in 45s
Rust check / Rust check (pull_request) Successful in 17m53s
All checks were successful
actionlint check / actionlint check (pull_request) Successful in 22s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 1m8s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 56s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 1m15s
GitLeaks check / GitLeaks check (pull_request) Successful in 12s
hadolint check / hadolint check (pull_request) Successful in 21s
markdownlint check / markdownlint check (pull_request) Successful in 35s
htmlhint check / htmlhint check (pull_request) Successful in 41s
Prettier check / Prettier check (pull_request) Successful in 28s
ShellCheck check / ShellCheck check (pull_request) Successful in 46s
Stylelint check / Stylelint check (pull_request) Successful in 42s
checkov check / checkov check (pull_request) Successful in 2m48s
yamllint check / yamllint check (pull_request) Successful in 45s
Rust check / Rust check (pull_request) Successful in 17m53s
This commit is contained in:
17
.github/workflows/hadolint-check.yaml
vendored
17
.github/workflows/hadolint-check.yaml
vendored
@@ -22,10 +22,21 @@ jobs:
|
||||
run: |
|
||||
set -e
|
||||
|
||||
VERSION="v2.12.0"
|
||||
CHECKSUM="5798551bf19f33951881f15eb238f90aef023f11e7ec7e9f4c37961cb87c5df6 hadolint"
|
||||
VERSION="2.12.0"
|
||||
|
||||
wget -O hadolint "https://github.com/hadolint/hadolint/releases/download/$VERSION/hadolint-Linux-arm64"
|
||||
ARCH="$(uname -m)"
|
||||
if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "amd64" ]; then
|
||||
ASSET="hadolint-Linux-x86_64"
|
||||
CHECKSUM="56de6d5e5ec427e17b74fa48d51271c7fc0d61244bf5c90e828aab8362d55010 hadolint"
|
||||
elif [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then
|
||||
ASSET="hadolint-Linux-arm64"
|
||||
CHECKSUM="5798551bf19f33951881f15eb238f90aef023f11e7ec7e9f4c37961cb87c5df6 hadolint"
|
||||
else
|
||||
echo "Unsupported architecture: $ARCH" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wget -O hadolint "https://github.com/hadolint/hadolint/releases/download/v${VERSION}/${ASSET}"
|
||||
echo "$CHECKSUM" | sha256sum --check
|
||||
|
||||
chmod +x hadolint
|
||||
|
||||
Reference in New Issue
Block a user