forked from vmware-archive/admiral
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update drone yml file to work with the new HaaS infrastructure
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
1 parent
64f70b7
commit e48b576
Showing
2 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.