forked from vmware-archive/admiral
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
37 lines (34 loc) · 1010 Bytes
/
.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
# Basic drone yaml to simply trigger downstream builds when code gets pushed to this repo
# For the secrets, I just used vmware/vic secrets
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
admiral-build:
image: alpine
commands:
- 'echo "Hello World!"'
trigger-downstream:
image: plugins/downstream
server: 'https://ci-vic.vmware.com'
secrets:
- downstream_token
fork: true
repositories:
- vmware/vic-product
when:
repo: vmware/admiral
event: [push, tag]
branch: [master]
status: success