forked from mootdx/mootdx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
54 lines (51 loc) · 1.23 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
kind: pipeline
name: default
type: docker
steps:
- name: test
image: mootdx:ci
commands:
- pytest -vs
- name: pypi
image: mootdx:ci
commands:
- python -m pip install poetry
- python -m poetry publish --no-cache --build --username=__token__ --password=$PYPI_PASSWORD
environment:
PYPI_PASSWORD:
from_secret: pypi_password
when:
ref:
include:
- refs/tags/**
# - name: sync
# image: mootdx:ci
# environment:
# SSH_KEY:
# from_secret: ssh_key
# commands:
# - echo "$SSH_KEY" > ~/.ssh/id_rsa
# - git remote add github [email protected]:mootdx/mootdx.git
# - git remote add gitee [email protected]:ibopo/mootdx.git
# - git checkout develop
# - git pull gitee develop
# - git push gitee develop
# - git pull github develop
# - git push github develop
#
# - name: publish
# image: mootdx:ci
# environment:
# USERNAME:
# from_secret: username
# PASSWORD:
# from_secret: password
# commands:
# - make history USERNAME=$USERNAME PASSWORD=$PASSWORD
# - make publish USERNAME=$USERNAME PASSWORD=$PASSWORD
# when:
# event:
# - promote
# target:
# - production