diff --git a/.drone.yml b/.drone.yml index 580e5dc..f9373ee 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,13 +4,12 @@ kind: pipeline type: docker name: default -environment: - PATH: '${DRONE_WORKSPACE}/.venv/bin:${PATH}' - steps: - name: install image: python:3.11-alpine commands: + - &path + export PATH="${DRONE_WORKSPACE}/.venv/bin:$$PATH" - virtualenv .venv - which pip - pip install black flake8 isort poetry @@ -18,6 +17,7 @@ steps: - name: check style image: python:3.11-alpine commands: + - *path - black --check . - isort -c . - flake8 . @@ -25,6 +25,7 @@ steps: - name: build image: python:3.11-alpine commands: + - *path - poetry build when: event: @@ -34,6 +35,7 @@ steps: - name: build and publish image: python:3.11-alpine commands: + - *path - poetry publish --build --repository git.luj0ga.de environment: POETRY_PYPI_TOKEN_git.luj0ga.de: