2022-05-08 14:02:19 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
type: docker
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: lint
|
2023-02-28 11:00:32 +00:00
|
|
|
image: python:3.8
|
2022-05-08 14:02:19 +00:00
|
|
|
commands:
|
2022-09-11 19:35:12 +00:00
|
|
|
- pip install poetry
|
2023-02-28 11:00:32 +00:00
|
|
|
- poetry config installer.modern-installation false
|
2022-05-08 14:02:19 +00:00
|
|
|
- poetry install
|
2022-09-08 17:04:00 +00:00
|
|
|
- poetry run flake8 .
|
2022-05-08 14:02:19 +00:00
|
|
|
- poetry run mypy .
|
|
|
|
- poetry run djlint .
|
|
|
|
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
repo: xefir/divent
|
|
|
|
auto_tag: true
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
|
|
|
|
- name: publish
|
2023-02-28 11:00:32 +00:00
|
|
|
image: python:3.8
|
2022-05-08 14:02:19 +00:00
|
|
|
commands:
|
2022-09-11 19:35:12 +00:00
|
|
|
- pip install poetry
|
2023-02-28 11:00:32 +00:00
|
|
|
- poetry config installer.modern-installation false
|
2022-05-08 14:02:19 +00:00
|
|
|
- poetry publish --build
|
|
|
|
environment:
|
|
|
|
POETRY_PYPI_TOKEN_PYPI:
|
|
|
|
from_secret: pypi_token
|
|
|
|
when:
|
|
|
|
event: tag
|