-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
51 lines (41 loc) · 1 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
kind: pipeline
type: exec
name: deploy to client
clone:
disable: true
platform:
os: windows
arch: amd64
steps:
- name: clone
commands:
- git clone ssh://[email protected]:10022/kamikadzem22/cgminer_exporter.git .
- git checkout $DRONE_COMMIT
- name: stop old service
failure: ignore
commands:
- nssm stop cgminer_exporter
- name: remove old service
failure: ignore
commands:
- nssm remove cgminer_exporter confirm
- name: remove old files
failure: ignore
commands:
- Remove-Item -Recurse -Force -Path C:\\Monitoring\\cgminer_exporter
- name: copy files
commands:
- mkdir C:\\Monitoring\\cgminer_exporter
- xcopy * C:\\Monitoring\\cgminer_exporter /exclude:.drone.yml
- name: create service
commands:
- nssm install cgminer_exporter uvicorn.exe main:app --workers 4 --port 9154
- nssm set cgminer_exporter AppDirectory C:\\Monitoring\\cgminer_exporter
- name: start service
commands:
- nssm restart cgminer_exporter
trigger:
branch:
- master
node:
target: monitoring