Skip to content

Commit

Permalink
Update drone yml file to work with the new HaaS infrastructure
Browse files Browse the repository at this point in the history
Change-Id: I4f1df0b642116aa473eabbcbf6db4b6d428878f1
Reviewed-on: https://bellevue-ci.eng.vmware.com:8080/27518
Reviewed-by: Lazarin Lazarov <[email protected]>
Bellevue-Verified: e_vcoauto_glob_1 <[email protected]>
Closures-Verified: e_vcoauto_glob_1 <[email protected]>
Reviewed-by: e_vcoauto_glob_1 <[email protected]>
CS-Verified: e_vcoauto_glob_1 <[email protected]>
Upgrade-Verified: e_vcoauto_glob_1 <[email protected]>
  • Loading branch information
mhagen-vmware authored and e_vcoauto_glob_1 committed Feb 28, 2018
1 parent 64f70b7 commit e48b576
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
42 changes: 29 additions & 13 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,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!"
- 'echo "Hello World!"'

trigger-downstream:
image: plugins/downstream
server: https://ci.vcna.io
token: ${DRONE_TOKEN}
fork: true
repositories:
- vmware/vic-product
when:
repo: vmware/admiral
event: [ push, tag ]
branch: [ master ]
status: success

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
1 change: 0 additions & 1 deletion .drone.yml.sig

This file was deleted.

0 comments on commit e48b576

Please sign in to comment.