tenkan/.drone.yml

57 lines
1 KiB
YAML
Raw Normal View History

2022-04-19 10:18:59 +02:00
---
kind: pipeline
type: kubernetes
name: python
steps:
- name: test
2022-04-21 16:07:37 +02:00
image: python:latest
2022-04-19 10:18:59 +02:00
commands:
2022-04-21 16:31:10 +02:00
- pip install -q --upgrade pre-commit pylint pydantic pytest
2022-04-19 10:18:59 +02:00
- pre-commit run --all-files
# - flake8 --ignore=E501,W503,E265
# - mypy --ignore-missing-imports ./tenkan/
# - pylint --disable=E1101,E0401,C0301,W1514,C0114 ./tenkan/
# - pytest ./tests/
2022-04-21 16:31:10 +02:00
- 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
tags: latest
when:
branch:
- master
- name: deploy_kube
kube:
image: takaoni/drone-kube
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 16:07:37 +02:00
host_aliases:
2022-04-21 16:08:41 +02:00
- ip: 192.168.0.210
2022-04-21 16:07:37 +02:00
hostnames:
- git.fqserv.eu