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
|
||||||
- hadolint 1.7/Dockerfile.prod
|
- hadolint 1.7/Dockerfile.prod
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
- push
|
||||||
|
|
||||||
---
|
---
|
||||||
###############################################################################
|
###############################################################################
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: test_1.6
|
name: test_1.6
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- lint
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build test
|
- name: build test
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -34,21 +32,19 @@ steps:
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- lint
|
||||||
|
|
||||||
---
|
---
|
||||||
###############################################################################
|
###############################################################################
|
||||||
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
|
||||||
|
@ -85,17 +81,20 @@ steps:
|
||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
---
|
trigger:
|
||||||
kind: pipeline
|
branch:
|
||||||
type: docker
|
- master
|
||||||
name: test_1.6-prod
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- lint
|
||||||
|
|
||||||
trigger:
|
---
|
||||||
event:
|
###############################################################################
|
||||||
- pull_request
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: test_1.6-prod
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build test
|
- name: build test
|
||||||
|
@ -105,7 +104,15 @@ steps:
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- lint
|
||||||
|
|
||||||
---
|
---
|
||||||
|
###############################################################################
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build_and_release_1.6-prod
|
name: build_and_release_1.6-prod
|
||||||
|
@ -152,17 +159,14 @@ trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: test_1.7
|
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- lint
|
||||||
|
|
||||||
trigger:
|
---
|
||||||
event:
|
###############################################################################
|
||||||
- pull_request
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: test_1.7
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build test
|
- name: build test
|
||||||
|
@ -172,7 +176,15 @@ steps:
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- lint
|
||||||
|
|
||||||
---
|
---
|
||||||
|
###############################################################################
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build_and_release_1.7
|
name: build_and_release_1.7
|
||||||
|
@ -219,17 +231,14 @@ trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: test_1.7-prod
|
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- lint
|
||||||
|
|
||||||
trigger:
|
---
|
||||||
event:
|
###############################################################################
|
||||||
- pull_request
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: test_1.7-prod
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build test
|
- name: build test
|
||||||
|
@ -239,7 +248,15 @@ steps:
|
||||||
repo: mwalbeck/getgrav
|
repo: mwalbeck/getgrav
|
||||||
dry_run: true
|
dry_run: true
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- lint
|
||||||
|
|
||||||
---
|
---
|
||||||
|
###############################################################################
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build_and_release_1.7-prod
|
name: build_and_release_1.7-prod
|
||||||
|
@ -285,3 +302,6 @@ trigger:
|
||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- lint
|
||||||
|
|
Loading…
Reference in a new issue