pretalx-musicrate/.drone.yml

51 lines
925 B
YAML
Raw Normal View History

2023-12-14 00:43:58 +01:00
---
kind: pipeline
type: docker
name: default
2023-12-14 01:17:50 +01:00
environment:
2023-12-14 01:19:10 +01:00
PATH: '${DRONE_WORKSPACE}/.venv/bin:${PATH}'
2023-12-14 01:17:50 +01:00
2023-12-14 00:43:58 +01:00
steps:
2023-12-14 01:17:50 +01:00
- name: install
image: python:3.11-alpine
commands:
- virtualenv .venv
- which pip
- pip install black flake8 isort poetry
2023-12-14 00:56:09 +01:00
- name: check style
2023-12-14 01:03:35 +01:00
image: python:3.11-alpine
2023-12-14 00:56:09 +01:00
commands:
- black --check .
- isort -c .
- flake8 .
2023-12-14 00:43:58 +01:00
- name: build
2023-12-14 01:03:35 +01:00
image: python:3.11-alpine
2023-12-14 00:43:58 +01:00
commands:
- poetry build
when:
event:
- pr
- push
- name: build and publish
2023-12-14 01:03:35 +01:00
image: python:3.11-alpine
2023-12-14 00:43:58 +01:00
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
2023-12-14 00:56:09 +01:00
trigger:
event:
- pr
- push
- tag