--- kind: pipeline type: docker name: default environment: PATH: ${DRONE_WORKSPACE}/.venv/bin:${PATH} steps: - name: install image: python:3.11-alpine commands: - virtualenv .venv - which pip - pip install black flake8 isort poetry - name: check style image: python:3.11-alpine commands: - black --check . - isort -c . - flake8 . - name: build image: python:3.11-alpine commands: - poetry build when: event: - pr - push - name: build and publish image: python:3.11-alpine commands: - poetry publish --build --repository git.luj0ga.de environment: POETRY_PYPI_TOKEN_git.luj0ga.de: from_secret: repo_token POETRY_REPOSITORIES_git.luj0ga.de_URL: https://git.luj0ga.de/api/packages/kontakt/pypi when: event: - tag trigger: event: - pr - push - tag