mirror of
https://github.com/cmur2/dyndnsd.git
synced 2025-01-24 07:27:01 +01:00
ci: use hadolint binary instead of Docker image
- has lower complexity and works equally well in CI
This commit is contained in:
parent
db8c5cd682
commit
3a31315d9e
4
Rakefile
4
Rakefile
@ -26,7 +26,9 @@ hadolint_version = 'v2.7.0'
|
|||||||
|
|
||||||
desc 'Run hadolint for Dockerfile linting'
|
desc 'Run hadolint for Dockerfile linting'
|
||||||
task :hadolint do
|
task :hadolint do
|
||||||
sh "docker run --rm -i hadolint/hadolint:#{hadolint_version} hadolint --ignore DL3018 - < docker/Dockerfile"
|
sh "wget -q -O ./hadolint https://github.com/hadolint/hadolint/releases/download/#{hadolint_version}/hadolint-Linux-x86_64"
|
||||||
|
sh 'chmod a+x ./hadolint'
|
||||||
|
sh './hadolint --ignore DL3018 docker/Dockerfile'
|
||||||
end
|
end
|
||||||
|
|
||||||
task default: [:rubocop, :spec, 'bundle:audit', :solargraph]
|
task default: [:rubocop, :spec, 'bundle:audit', :solargraph]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user