Divent/.drone.yml
Michel Roux 61f9eba7ef
All checks were successful
continuous-integration/drone/push Build is passing
Test trust all hosts on uvicorn middleware
2022-09-08 17:04:00 +00:00

35 lines
672 B
YAML

kind: pipeline
name: default
type: docker
steps:
- name: lint
image: python:3.8-slim
commands:
- pip install poetry
- poetry install
- poetry run flake8 .
- poetry run mypy .
- poetry run djlint .
- name: docker
image: plugins/docker
settings:
repo: xefir/divent
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: publish
image: python:3.8-slim
commands:
- pip install poetry
- poetry publish --build
environment:
POETRY_PYPI_TOKEN_PYPI:
from_secret: pypi_token
when:
event: tag