From 5d22f5d8201f95781668b03788b002178e137900 Mon Sep 17 00:00:00 2001 From: Miguel Prada <miguel.prada@tecnalia.com> Date: Fri, 17 May 2019 11:18:53 +0200 Subject: [PATCH] Add dockerfile tests using hadolint --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 796a382..76826c3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,3 +2,12 @@ shellcheck: image: koalaman/shellcheck-alpine script: 'shellcheck deploy/base/ros_entrypoint.bash scripts/*sh' allow_failure: yes + +dockerfiles: + image: hadolint/hadolint:latest-debian + script: + - RET=0 + - hadolint deploy/base/Dockerfile || RET=1 + - hadolint deploy/dev/Dockerfile || RET=1 + - exit $RET + allow_failure: yes -- GitLab