From ddef170d87c3521f3d3813e19e1cb1c686c5a1b2 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 24 Jan 2021 14:40:41 +0100 Subject: [PATCH] chore: add Hadolint Dockerfile linting * as per #22 * update PR pipeline in .drone.yml * add .hadolint.yaml --- .drone.yml | 12 ++++++++++++ .hadolint.yaml | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 .hadolint.yaml diff --git a/.drone.yml b/.drone.yml index cb840e5..af404bc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,6 +24,12 @@ steps: commands: - uname -r +- name: hadolint + pull: always + image: hadolint/hadolint:latest + commands: + - uname -r + - hadolint --version --- kind: pipeline @@ -68,6 +74,12 @@ depends_on: - build steps: +- name: hadolint + image: hadolint/hadolint:latest + commands: + - hadolint --version + - hadolint Dockerfile + - name: build pull: always image: tmaier/docker-compose:latest diff --git a/.hadolint.yaml b/.hadolint.yaml new file mode 100644 index 0000000..cece24b --- /dev/null +++ b/.hadolint.yaml @@ -0,0 +1,2 @@ +ignored: + - DL3007