This commit is contained in:
parent
fbe79256fb
commit
44a7c416d3
1 changed files with 40 additions and 35 deletions
75
.drone.yml
75
.drone.yml
|
@ -5,8 +5,7 @@ name: python
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
#image: python/latest
|
image: python:latest
|
||||||
image: alpine/git
|
|
||||||
commands:
|
commands:
|
||||||
- pip install -q --upgrade pre-commit
|
- pip install -q --upgrade pre-commit
|
||||||
- pre-commit run --all-files
|
- pre-commit run --all-files
|
||||||
|
@ -15,38 +14,44 @@ steps:
|
||||||
# - pylint --disable=E1101,E0401,C0301,W1514,C0114 ./tenkan/
|
# - pylint --disable=E1101,E0401,C0301,W1514,C0114 ./tenkan/
|
||||||
# - pytest ./tests/
|
# - pytest ./tests/
|
||||||
|
|
||||||
- name: publish_pypi
|
#- name: publish_pypi
|
||||||
image: plugins/pypi
|
# image: plugins/pypi
|
||||||
settings:
|
# settings:
|
||||||
username:
|
# username:
|
||||||
from_secret: pypi_username
|
# from_secret: pypi_username
|
||||||
password:
|
# password:
|
||||||
from_secret: pypi_password
|
# from_secret: pypi_password
|
||||||
when:
|
# when:
|
||||||
branch:
|
# branch:
|
||||||
- master
|
# - 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
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|
||||||
|
host_aliases:
|
||||||
|
- ip:
|
||||||
|
from_secret: kube_ip
|
||||||
|
hostnames:
|
||||||
|
- git.fqserv.eu
|
||||||
|
|
Loading…
Reference in a new issue