forked from vmware/vic-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
147 lines (135 loc) · 3.47 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
workspace:
base: /go
path: src/github.com/vmware/vic-ui
clone:
git:
image: plugins/git
tags: true
recursive: false
pipeline:
check-org-membership:
image: 'wdc-harbor-ci.eng.vmware.com/default-project/vic-integration-test:1.44'
pull: true
environment:
BIN: bin
GOPATH: /go
SHELL: /bin/bash
secrets:
- github_automation_api_key
commands:
- echo ${DRONE_COMMIT_AUTHOR}
- /bin/bash -c '[[ ! $(curl --silent "https://api.github.com/orgs/vmware/members/${DRONE_COMMIT_AUTHOR}?access_token=$GITHUB_AUTOMATION_API_KEY") ]]'
when:
status: success
vic-ui:
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.36'
pull: true
environment:
BIN: bin
secrets:
- gs_client_email
- gs_private_key
- gs_project_id
commands:
- 'export BUILD_NUMBER=${DRONE_BUILD_NUMBER}'
- 'make vic-ui-plugins'
when:
repo: vmware/vic-ui
branch: [master, develop, 'releases/*']
bundle:
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.36'
pull: true
environment:
BIN: bin
GOPATH: /go
SHELL: /bin/bash
commands:
- 'mkdir -p $BIN/ui'
- 'tar -czvf $BIN/vic_ui_${DRONE_BUILD_NUMBER}.tar.gz $BIN/ui'
- 'mkdir bundle'
- 'mkdir bundle-release'
- 'cp $BIN/vic_ui_${DRONE_BUILD_NUMBER}.tar.gz bundle'
- 'cp $BIN/vic_ui_${DRONE_BUILD_NUMBER}.tar.gz bundle-release/vic_ui_`git describe --tags --abbrev=0`.tar.gz'
- 'rm -rf $BIN'
- 'ls -la bundle'
when:
repo: vmware/vic-ui
event: [push, tag]
branch: [master, develop, 'releases/*']
publish-gcs-builds-on-pass:
image: 'victest/drone-gcs:1'
pull: true
secrets:
- google_key
source: bundle
target: vic-ui-builds
acl:
- 'allUsers:READER'
cache_control: 'public,max-age=3600'
when:
repo: vmware/vic-ui
event: [push]
branch: [master, develop, 'releases/*']
status: success
publish-gcs-releases:
image: 'victest/drone-gcs:1'
pull: true
secrets:
- google_key
source: bundle-release
target: vic-ui-releases
acl:
- 'allUsers:READER'
cache_control: 'public,max-age=3600'
when:
repo: vmware/vic-ui
event: tag
status: success
report-coverage:
image: 'robertstettner/drone-codecov'
secrets:
- codecov_token
files:
- 'h5c/vic/src/vic-webapp/coverage/lcov.info'
trigger-downstream:
image: 'gcr.io/eminent-nation-87317/vic-downstream-trigger:1.3'
environment:
SHELL: /bin/bash
DOWNSTREAM_REPO: vmware/vic
DOWNSTREAM_BRANCH: ${DRONE_BRANCH}
secrets:
- drone_server
- drone_token
when:
repo: vmware/vic-ui
event: [push]
branch: [master]
status: success
trigger-downstream-tag:
image: 'gcr.io/eminent-nation-87317/vic-downstream-trigger:1.3'
environment:
SHELL: /bin/bash
DOWNSTREAM_REPO: vmware/vic
DOWNSTREAM_BRANCH: ${DRONE_BRANCH}
secrets:
- drone_server
- drone_token
when:
repo: vmware/vic-ui
event: [tag]
branch: [master, 'releases/*']
status: success
pass-rate:
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.42'
pull: true
environment:
BIN: bin
SHELL: /bin/bash
secrets:
- github_automation_api_key
- slack_url
commands:
- tests/pass-rate.sh
services:
selenium:
image: selenium/standalone-firefox