Lint dockerfiles and add CI pipeline for linting #67
2 changed files with 14 additions and 10 deletions
22
.drone.yml
22
.drone.yml
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
###############################################################################
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: lint
|
||||
|
@ -12,11 +13,8 @@ steps:
|
|||
- hadolint 1.7/Dockerfile
|
||||
- hadolint 1.7/Dockerfile.prod
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
---
|
||||
###############################################################################
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test_1.6
|
||||
|
@ -37,10 +35,20 @@ steps:
|
|||
dry_run: true
|
||||
|
||||
---
|
||||
###############################################################################
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build_and_release_1.6
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: determine tags
|
||||
image: mwalbeck/determine-docker-tags
|
||||
|
@ -77,12 +85,6 @@ steps:
|
|||
- success
|
||||
- failure
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
|
|
|
@ -2,3 +2,5 @@
|
|||
ignored:
|
||||
- DL3008
|
||||
- DL3003
|
||||
- SC2164
|
||||
- SC2086
|
||||
|
|
Loading…
Reference in a new issue