Lint dockerfiles and add CI pipeline for linting #67
1 changed files with 59 additions and 39 deletions
98
.drone.yml
98
.drone.yml
|
@ -13,19 +13,17 @@ steps:
|
|||
- hadolint 1.7/Dockerfile
|
||||
- hadolint 1.7/Dockerfile.prod
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
---
|
||||
###############################################################################
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test_1.6
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
steps:
|
||||
- name: build test
|
||||
image: plugins/docker
|
||||
|
@ -34,21 +32,19 @@ steps:
|
|||
repo: mwalbeck/getgrav
|
||||
dry_run: true
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
||||
---
|
||||
###############################################################################
|
||||
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
|
||||
|
@ -85,17 +81,20 @@ steps:
|
|||
- success
|
||||
- failure
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test_1.6-prod
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
---
|
||||
###############################################################################
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test_1.6-prod
|
||||
|
||||
steps:
|
||||
- name: build test
|
||||
|
@ -105,7 +104,15 @@ steps:
|
|||
repo: mwalbeck/getgrav
|
||||
dry_run: true
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
||||
---
|
||||
###############################################################################
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build_and_release_1.6-prod
|
||||
|
@ -152,17 +159,14 @@ trigger:
|
|||
event:
|
||||
- push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test_1.7
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
---
|
||||
###############################################################################
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test_1.7
|
||||
|
||||
steps:
|
||||
- name: build test
|
||||
|
@ -172,7 +176,15 @@ steps:
|
|||
repo: mwalbeck/getgrav
|
||||
dry_run: true
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
||||
---
|
||||
###############################################################################
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build_and_release_1.7
|
||||
|
@ -219,17 +231,14 @@ trigger:
|
|||
event:
|
||||
- push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test_1.7-prod
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
---
|
||||
###############################################################################
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test_1.7-prod
|
||||
|
||||
steps:
|
||||
- name: build test
|
||||
|
@ -239,7 +248,15 @@ steps:
|
|||
repo: mwalbeck/getgrav
|
||||
dry_run: true
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
||||
---
|
||||
###############################################################################
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build_and_release_1.7-prod
|
||||
|
@ -285,3 +302,6 @@ trigger:
|
|||
- master
|
||||
event:
|
||||
- push
|
||||
|
||||
depends_on:
|
||||
- lint
|
||||
|
|
Loading…
Reference in a new issue