2022-04-19 10:18:59 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: python
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:latest
|
|
|
|
commands:
|
2022-04-21 18:24:05 +02:00
|
|
|
- pip install -q --upgrade pre-commit poetry pytest pylint pydantic rich markdownify prettytable feedgen feedparser md2gemini readability-lxml
|
2022-04-24 21:01:49 +02:00
|
|
|
# - pre-commit run --all-files
|
2022-04-19 10:18:59 +02:00
|
|
|
# - flake8 --ignore=E501,W503,E265
|
|
|
|
# - mypy --ignore-missing-imports ./tenkan/
|
|
|
|
# - pylint --disable=E1101,E0401,C0301,W1514,C0114 ./tenkan/
|
|
|
|
# - pytest ./tests/
|
|
|
|
|
|
|
|
- name: publish_pypi
|
|
|
|
image: plugins/pypi
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: pypi_username
|
|
|
|
password:
|
|
|
|
from_secret: pypi_password
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
- name: push_docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: takaoni/tenkan
|
2022-04-24 22:18:08 +02:00
|
|
|
tags: '1.3'
|
|
|
|
dockerfile: docker/Dockerfile
|
2022-04-19 10:18:59 +02:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
2022-04-24 20:50:16 +02:00
|
|
|
# - name: deploy_kube
|
|
|
|
# image: takaoni/drone-kube
|
|
|
|
# settings:
|
|
|
|
# template: apps/tenkan.yaml
|
|
|
|
# namespace: gemini
|
|
|
|
# server:
|
|
|
|
# from_secret: kube_server
|
|
|
|
# when:
|
|
|
|
# branch:
|
|
|
|
# - master
|
2022-04-19 10:18:59 +02:00
|
|
|
|
2022-04-21 17:02:40 +02:00
|
|
|
host_aliases:
|
|
|
|
- ip: 192.168.0.210
|
|
|
|
hostnames:
|
|
|
|
- git.fqserv.eu
|