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
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: lint
|
name: lint
|
||||||
|
@ -12,11 +13,8 @@ steps:
|
||||||
- hadolint 1.7/Dockerfile
|
- hadolint 1.7/Dockerfile
|
||||||
- hadolint 1.7/Dockerfile.prod
|
- hadolint 1.7/Dockerfile.prod
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
###############################################################################
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: test_1.6
|
name: test_1.6
|
||||||
|
@ -37,10 +35,20 @@ steps:
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
|
||||||
---
|
---
|
||||||
|
###############################################################################
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build_and_release_1.6
|
name: build_and_release_1.6
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- lint
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: determine tags
|
- name: determine tags
|
||||||
image: mwalbeck/determine-docker-tags
|
image: mwalbeck/determine-docker-tags
|
||||||
|
@ -77,12 +85,6 @@ steps:
|
||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
|
|
@ -2,3 +2,5 @@
|
||||||
ignored:
|
ignored:
|
||||||
- DL3008
|
- DL3008
|
||||||
- DL3003
|
- DL3003
|
||||||
|
- SC2164
|
||||||
|
- SC2086
|
||||||
|
|
Loading…
Reference in a new issue