From 1889e39b2068973591e6087d3d1b77ae1187afce Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 14 Dec 2023 00:43:58 +0100 Subject: [PATCH] ci: add drone config --- .drone.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3e6c111 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,29 @@ +--- + +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: python:3.12-alpine + commands: + - pip install poetry + - poetry build + when: + event: + - pr + - push + + - name: build and publish + image: python:3.12-alpine + commands: + - pip install poetry + - 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