Skip to content

Commit

Permalink
trigger a build
Browse files Browse the repository at this point in the history
Signed-off-by: Meina Zhou <[email protected]>
  • Loading branch information
zhoumeina committed Jan 9, 2019
1 parent afa649a commit 226eba5
Showing 1 changed file with 21 additions and 129 deletions.
150 changes: 21 additions & 129 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
Expand Down Expand Up @@ -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
Expand All @@ -121,7 +74,9 @@ pipeline:
privileged: true
environment:
TERM: xterm
HARBOR: https://storage.googleapis.com/harbor-releases/release-1.7.0/harbor-offline-installer-v1.7.1.tgz
HARBOR: https://storage.googleapis.com/harbor-releases/release-1.7.0/harbor-offline-installer-v1.7.1-build.1025.tgz
ADMIRAL: v1.5.0-rc3

secrets:
- admiral
- build_admiral_release
Expand All @@ -141,85 +96,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'
Expand Down Expand Up @@ -265,7 +141,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]

Expand Down Expand Up @@ -326,6 +202,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
Expand Down Expand Up @@ -480,5 +372,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 226eba5

Please sign in to comment.