mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-09-29 16:48:09 +00:00
28 lines
638 B
YAML
28 lines
638 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: test
|
|
image: python:3.10-alpine
|
|
commands:
|
|
- pip install -r requirements_dev.txt --cache-dir=/package_cache
|
|
- behave --stop
|
|
|
|
- name: publishing
|
|
image: python:3.10-alpine
|
|
environment:
|
|
PYPI_USERNAME:
|
|
from_secret: PYPI_USERNAME
|
|
PYPI_PASSWORD:
|
|
from_secret: PYPI_PASSWORD
|
|
commands:
|
|
- export POETRY_HOME=/opt/poetry
|
|
- python3 -m venv $POETRY_HOME
|
|
- $POETRY_HOME/bin/pip install poetry==1.3.2
|
|
- $POETRY_HOME/bin/poetry install
|
|
- $POETRY_HOME/bin/poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
|
|
when:
|
|
event: tag
|
|
|