drone: separate pipeline for py/docker
parent
c7082dcf6c
commit
5336d26204
29
.drone.yml
29
.drone.yml
|
@ -1,5 +1,5 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: lint
|
||||||
|
@ -10,20 +10,32 @@ steps:
|
||||||
- isort --check-only --diff .
|
- isort --check-only --diff .
|
||||||
- pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8
|
- pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8
|
||||||
|
|
||||||
- name: pypi
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: python
|
||||||
|
|
||||||
|
- name: publish
|
||||||
image: plugins/pypi
|
image: plugins/pypi
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
from_secret: pypi_user
|
from_secret: pypi_user
|
||||||
password:
|
password:
|
||||||
from_secret: pypi_pwd
|
from_secret: pypi_pwd
|
||||||
when:
|
|
||||||
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
- name: docker
|
depends_on:
|
||||||
|
- test
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: docker
|
||||||
|
|
||||||
|
- name: publish
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
@ -33,3 +45,12 @@ steps:
|
||||||
repo:
|
repo:
|
||||||
from_secret: docker_repo
|
from_secret: docker_repo
|
||||||
tags: latest
|
tags: latest
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
|
Loading…
Reference in New Issue