mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-04 22:43:18 +03:00
Add hadolint check
This commit is contained in:
parent
8b2d7b758d
commit
a7c2d21777
3
.github/workflows/check.yml
vendored
3
.github/workflows/check.yml
vendored
@ -37,6 +37,9 @@ jobs:
|
||||
options: --volume ${{ github.workspace }}:/work:rw --workdir /work --privileged --env CARGO_TERM_COLOR=always
|
||||
run: gitleaks detect --verbose --config .github/workflows/config/gitleaks.toml
|
||||
|
||||
- name: Hadolint
|
||||
run: bin/check/hadolint.sh ./contrib/docker/Dockerfile
|
||||
|
||||
- name: Install prerequisites
|
||||
run: bin/check/install_prerequisites.sh
|
||||
|
||||
|
8
bin/check/hadolint.sh
Executable file
8
bin/check/hadolint.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
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}"
|
Loading…
Reference in New Issue
Block a user