ci: introduce hadolint Dockerfile linting
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f84c016be7
commit
41553cbe1c
15
.drone.yml
15
.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
|
||||
|
Loading…
Reference in New Issue
Block a user