diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2022-05-10 02:05:10 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2022-05-10 02:05:10 +0300 |
commit | 9ea654a50765b3666e95398c310e99ad0e6a5d98 (patch) | |
tree | b1c87f988af66722f45f926497691b9db784b78a /.gitlab-ci.yml | |
parent | c411b0a3bd8aeb33f529da53bb84dd8ceaae8ed0 (diff) |
Use hadolint to lint Dockerfiles
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cc64b08e..421b75e0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -412,6 +412,18 @@ test_unlinked_images: - cd ../gitlab - ./unlinked-images.sh doc + +lint_dockerfiles: + extends: + - .rules_site_tests + image: hadolint/hadolint:latest-alpine + needs: [] + before_script: [] + dependencies: [] + script: + - for file in Dockerfile.*; do hadolint $file; done + - for file in dockerfiles/Dockerfile.*; do hadolint $file; done + ############################################### # Review Apps # ############################################### |