Divent/.drone.yml
Michel Roux 44ad73312c
All checks were successful
continuous-integration/drone/push Build is passing
Back to 3.8.1 and fix poetry issue
2023-02-28 12:00:32 +01:00

37 lines
778 B
YAML

kind: pipeline
name: default
type: docker
steps:
- name: lint
image: python:3.8
commands:
- pip install poetry
- poetry config installer.modern-installation false
- 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
commands:
- pip install poetry
- poetry config installer.modern-installation false
- poetry publish --build
environment:
POETRY_PYPI_TOKEN_PYPI:
from_secret: pypi_token
when:
event: tag