Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trigger a build
Browse files Browse the repository at this point in the history
Signed-off-by: Meina Zhou <meinaz@vmware.com>
zhoumeina committed Apr 29, 2019
1 parent acafb86 commit 292407c
Showing 1 changed file with 18 additions and 128 deletions.
146 changes: 18 additions & 128 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

workspace:
base: /go
path: src/github.com/vmware/vic-product
@@ -67,52 +66,6 @@ pipeline:
when:
status: success

dch-build:
group: build
image: 'gcr.io/eminent-nation-87317/vic-product-build:latest'
pull: true
privileged: true
environment:
TERM: xterm
secrets:
- github_automation_api_key
- harbor_ci_registry
- test_username
- test_password
volumes:
- '/dev:/dev'
- '/var/run/docker.sock:/var/run/docker.sock'
- '/etc/docker:/etc/docker'
commands:
- 'docker ps'
- 'dinv/ci.sh build'
when:
branch: master
repo: vmware/vic-product
event: [push, pull_request, tag, deployment]
status: success

dch-push:
image: 'gcr.io/eminent-nation-87317/vic-product-build:latest'
pull: true
privileged: true
environment:
TERM: xterm
secrets:
- docker_user
- docker_password
- github_automation_api_key
volumes:
- '/dev:/dev'
- '/var/run/docker.sock:/var/run/docker.sock'
commands:
- 'docker ps'
- 'dinv/ci.sh push'
when:
branch: master
repo: vmware/vic-product
event: [push, tag, deployment]
status: success

unified-ova-build:
group: build
@@ -141,85 +94,6 @@ pipeline:
branch: [master, 'releases/*', 'feature/*', 'refs/tags/*']
status: success

integration-test-ova-setup:
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
privileged: true
environment:
BIN: bin
GOPATH: /go
SHELL: /bin/bash
secrets:
- bridge_network
- public_network
- test_datastore
- test_password
- test_resource
- test_url
- test_username
volumes:
- /tmp
commands:
- 'pybot -d robot-logs/ova-setup-logs -s OVA-Setup tests/common-ova'
when:
repo: vmware/vic-product
event: [push, pull_request, tag, deployment]
branch: [master, 'releases/*', 'feature/*', 'refs/tags/*']
status: success

integration-test:
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
privileged: true
environment:
BIN: bin
GOPATH: /go
SHELL: /bin/bash
secrets:
- harbor_ci_registry
- bridge_network
- public_network
- test_datastore
- test_password
- test_resource
- test_url
- test_username
- vch_timeout
volumes:
- /tmp
commands:
- tests/robot-run.sh
when:
repo: vmware/vic-product
event: [push, pull_request, tag, deployment]
branch: [master, 'releases/*', 'feature/*', 'refs/tags/*']
status: success

integration-test-ova-cleanup:
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.48'
pull: true
environment:
BIN: bin
GOPATH: /go
SHELL: /bin/bash
secrets:
- bridge_network
- public_network
- test_datastore
- test_password
- test_resource
- test_url
- test_username
volumes:
- /tmp
commands:
- 'pybot -d robot-logs/ova-cleanup-logs -s OVA-Cleanup tests/common-ova'
when:
repo: vmware/vic-product
event: [push, pull_request, tag, deployment]
branch: [master, 'releases/*', 'feature/*', 'refs/tags/*']
status: [success, failure]

bundle-logs:
group: post-build
image: 'gcr.io/eminent-nation-87317/vic-integration-test:1.37'
@@ -265,7 +139,7 @@ pipeline:
- tests/bundle_dev_builds.sh
when:
repo: vmware/vic-product
event: [push, tag]
event: [push, tag, pull_request]
branch: [master, 'releases/*', 'feature/*', 'refs/tags/*']
status: [success, failure]

@@ -326,6 +200,22 @@ pipeline:
branch: [master]
status: success

publish-gcs-master-builds-pr:
image: 'victest/drone-gcs:1'
pull: true
secrets:
- google_key
source: bundle
target: vic-product-ova-builds/pull/${DRONE_PULL_REQUEST}/
acl:
- 'allUsers:READER'
cache_control: 'public,max-age=3600'
when:
repo: vmware/vic-product
event: [pull_request]
branch: [master]
status: [failure, success]

publish-gcs-branch-builds-push:
image: 'victest/drone-gcs:1'
pull: true
@@ -497,5 +387,5 @@ services:
SE_OPTS: '-port 4447'
HUB_PORT_4444_TCP_ADDR: selenium-grid-hub
HUB_PORT_4444_TCP_PORT: '4444'
DISPLAY: ':99.0'

DISPLAY: ':99.0'

0 comments on commit 292407c

Please sign in to comment.