From e10bbd74f83b843c4b7a6f2479a8ed1b6bc0836c Mon Sep 17 00:00:00 2001 From: wanderer Date: Tue, 16 Feb 2021 16:11:24 +0100 Subject: [PATCH] chore: add Hadolint Dockerfile linting (#27) as per #22 fixes #22 * update PR pipeline in .drone.yml * add .hadolint.yaml Co-authored-by: surtur Reviewed-on: https://git.dotya.ml/dotya.ml/homepage/pulls/27 Co-authored-by: wanderer Co-committed-by: wanderer --- .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