morss/.drone.yml

37 lines
748 B
YAML
Raw Normal View History

2021-09-08 19:24:50 +00:00
kind: pipeline
name: default
steps:
2021-12-05 15:25:49 +00:00
- name: lint
image: alpine
commands:
2021-12-04 11:01:10 +00:00
- apk add --no-cache python3 py3-lxml py3-pip py3-wheel py3-enchant hunspell-en
2021-12-04 13:26:40 +00:00
- pip3 install --no-cache-dir .[full] .[dev]
- isort --check-only --diff .
- pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8
2021-12-05 15:26:53 +00:00
2021-12-05 15:30:59 +00:00
- name: pypi
2021-12-05 15:26:53 +00:00
image: plugins/pypi
settings:
username:
2021-12-05 15:30:59 +00:00
from_secret: pypi_user
2021-12-05 15:26:53 +00:00
password:
2021-12-05 15:30:59 +00:00
from_secret: pypi_pwd
2021-12-05 15:26:53 +00:00
when:
branch:
- master
event:
- push
2021-12-05 18:51:42 +00:00
- name: docker
image: thegeeklab/drone-docker-buildx
settings:
username:
from_secret: docker_user
password:
from_secret: docker_pwd
repo:
from_secret: docker_repo
tags: latest
platforms: linux/amd64,linux/arm64