-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
98 lines (85 loc) · 1.69 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
kind: pipeline
type: docker
name: Default
trigger:
event:
- push
- pull_request
steps:
- name: Build Docker Image
image: docker
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build -t odeanimate:drone-${DRONE_COMMIT} -f ./scripts/Dockerfile .
- name: Black
image: odeanimate:drone-${DRONE_COMMIT}
commands:
- ./scripts/format.sh
depends_on:
- Build Docker Image
- name: Tests
image: odeanimate:drone-${DRONE_COMMIT}
commands:
- ./scripts/tests.sh
depends_on:
- Build Docker Image
- name: Documentation
image: odeanimate:drone-${DRONE_COMMIT}
commands:
- ./scripts/build-docs.sh
depends_on:
- Build Docker Image
- name: Code Verification
image: odeanimate:drone-${DRONE_COMMIT}
commands:
- echo "Code Verification Complete"
depends_on:
- Black
- Tests
- Documentation
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: Publish
depends_on:
- Default
trigger:
branch:
- release
event:
- push
steps:
- name: Publish to PyPi
image: odeanimate:drone-${DRONE_COMMIT}
environment:
PYPI_TOKEN:
from_secret: PYPI_TOKEN_FULL
commands:
- date
- ./scripts/publish.sh
- name: Generate Documentation Site
image: odeanimate:drone-${DRONE_COMMIT}
commands:
- date
- ./scripts/build-docs.sh
- name: Deploy Documentation Site
image: drillster/drone-rsync
settings:
hosts: [ "ekiim.xyz" ]
user: ekiim
source: /drone/src/site/.
target: /var/www/xyz.ekiim.odeanimate
recursive: true
delete: true
key:
from_secret: ekiim-deployer-ssh
volumes:
- name: dockersock
host:
path: /var/run/docker.sock