Skip to content

Commit

Permalink
squash! Publish artifacts from release branches separately
Browse files Browse the repository at this point in the history
Also, publish artifacts from PR builds into separate bucket.
  • Loading branch information
zjs committed Jun 18, 2018
1 parent 674aea0 commit 48482d2
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,23 @@ pipeline:
- 'cp $BIN/vic_${DRONE_BUILD_NUMBER}.tar.gz bundle-release/vic_`git describe --tags --abbrev=0)`.tar.gz'
when:
repo: vmware/vic
branch: [master, 'releases/*']
event: [push, tag]
status: [success, failure]

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

publish-gcs-builds-on-master-push-pass:
image: 'victest/drone-gcs:1'
pull: true
Expand Down

0 comments on commit 48482d2

Please sign in to comment.