Repository navigation
Expand file tree
/
Copy path.drone.yml
More file actions
78 lines (68 loc) · 1.8 KB
/
Copy path.drone.yml
File metadata and controls
78 lines (68 loc) · 1.8 KB
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
kind: pipeline
type: ssh
name: 同步321CQU公共仓库
server:
host:
from_secret: ssh_host
user: root
ssh_key:
from_secret: ssh_key
platform:
os: linux
arсh: amd64
clone:
disable: true
steps:
- name: clone
environment:
ENV_FILE_PATH: ./.env.example
commands:
- git config --global http.proxy http://127.0.0.1:7890
- git config --global https.proxy http://127.0.0.1:7890
- git clone https://github.com/321CQU/Public_Repository.git
- cd ./Public_Repository
- git checkout main
- source $ENV_FILE_PATH
- cp -a -r -f ./micro_services_protobuf/ $${_321CQU_PUBLIC_REPOSITORY_PATH}/micro_services_protobuf/
- cp -a -r -f ./python_package/_321CQU/ $${_321CQU_PUBLIC_REPOSITORY_PATH}/python_package/
- cp -a -r -f ./python_package/micro_services_protobuf/ $${_321CQU_PUBLIC_REPOSITORY_PATH}/python_package/
- cp -a -r -f ./proto_build/python/micro_services_protobuf $${_321CQU_PUBLIC_REPOSITORY_PATH}/python_package/
- cp -a -r -f ./docker-compose.yml $${_321CQU_PUBLIC_REPOSITORY_PATH}/
- cp -a -r -f ./prometheus/ $${_321CQU_PUBLIC_REPOSITORY_PATH}/
- cp -a -r -f ./grafana/ $${_321CQU_PUBLIC_REPOSITORY_PATH}/
- cp -a -r -f $ENV_FILE_PATH $${_321CQU_PUBLIC_REPOSITORY_PATH}/
trigger:
branch:
- main
event:
- push
- merge
---
kind: pipeline
type: docker
name: 通知
clone:
disable: true
steps:
- name: 钉钉通知
image: lddsb/drone-dingtalk-message
settings:
token:
from_secret: dingtalk_token
secret:
from_secret: dingtalk_sign
type: markdown
message_color: true
message_pic: true
sha_link: true
trigger:
branch:
- main
event:
- push
- merge
status:
- success
- failure
depends_on:
- 同步321CQU公共仓库