genhost/.drone.yml

52 lines
839 B
YAML

---
kind: pipeline
type: docker
name: lint
steps:
- name: lint
image: mwalbeck/python-poetry:1-3.10
pull: if-not-exists
environment:
APP_DIR: genhost
POETRY_VIRTUALENVS_CREATE: "false"
commands:
- poetry install
- black --check $${APP_DIR}
- flake8 $${APP_DIR}
trigger:
event:
- pull_request
- tag
---
kind: pipeline
type: docker
name: release
steps:
- name: release
image: mwalbeck/python-poetry:1-3.10
pull: if-not-exists
environment:
POETRY_VIRTUALENVS_CREATE: "false"
POETRY_PYPI_TOKEN_PYPI:
from_secret: poetry_pypi_token
commands:
- poetry install
- poetry publish --build
trigger:
event:
- tag
depends_on:
- lint
---
kind: signature
hmac: a9c74d3a9fc072b87583c43c0c999bfb416207cb45fdf21879f99ca0b0ab7af8
...