-
Notifications
You must be signed in to change notification settings - Fork 25
/
.drone.yml
162 lines (149 loc) · 3.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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
workspace:
base: /go
path: src/github.com/vmware/vic-ui
clone:
git:
image: plugins/git
tags: true
recursive: false
pipeline:
check-org-membership:
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.50'
pull: true
environment:
BIN: bin
GOPATH: /go
SHELL: /bin/bash
secrets:
- github_automation_api_key
commands:
- tests/check-org-membership.sh
when:
status: success
vic-ui:
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.50'
pull: true
environment:
BIN: bin
secrets:
- gs_client_email
- gs_private_key
- gs_project_id
commands:
- 'export BUILD_NUMBER=${DRONE_BUILD_NUMBER}'
- 'npm config set registry https://build-artifactory.eng.vmware.com/artifactory/api/npm/npm && make vic-ui-plugins'
when:
status: success
bundle:
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.50'
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
status: success
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]
status: success
publish-gcs-develop-builds-on-pass:
image: 'victest/drone-gcs:1'
pull: true
secrets:
- google_key
source: bundle
target: vic-ui-builds/develop/
acl:
- 'allUsers:READER'
cache_control: 'public,max-age=3600'
when:
repo: vmware/vic-ui
event: [push]
branch: [develop]
status: success
publish-gcs-release-builds-on-pass:
image: 'victest/drone-gcs:1'
pull: true
secrets:
- google_key
source: bundle
target: vic-ui-builds/${DRONE_BRANCH}/
acl:
- 'allUsers:READER'
cache_control: 'public,max-age=3600'
when:
repo: vmware/vic-ui
event: [push]
branch: ['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
branch: ['releases/*', 'refs/tags/*']
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-product
DOWNSTREAM_BRANCH: ${DRONE_BRANCH}
secrets:
- drone_server
- drone_token
when:
repo: vmware/vic-ui
event: [push, tag]
branch: [master, 'releases/*', 'refs/tags/*']
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