From 41553cbe1c75d3335079be914e0f7d6e5e679f3e Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 21 Apr 2021 23:09:43 +0200 Subject: [PATCH] ci: introduce hadolint Dockerfile linting --- .drone.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.drone.yml b/.drone.yml index 3d68d9c..19fbc52 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,21 @@ platform: arch: amd64 steps: +- name: hadolint + pull: always + image: hadolint/hadolint:v1.23.0-8-gb01c5a9-alpine + commands: + - hadolint --version + - hadolint Dockerfile + when: + ref: + - refs/heads/master + - "refs/heads/feature-**" + - "refs/pull/**" + - "refs/tags/**" + event: + exclude: [cron] + - name: kaniko-build pull: always image: immawanderer/drone-kaniko:efd19c50