forked from vmware/vic-product
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.local.yml
72 lines (66 loc) · 2.04 KB
/
.drone.local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# After any change to this file you MUST re-sign and checkin the .drone.yml.sig
# When you are ready to submit a pull request, you must regenerate .drone.yml.sig for the vmware/vic-product repo:
# $ export DRONE_SERVER=https://ci.vcna.io
# $ export DRONE_TOKEN=<token>
# $ drone sign vmware/vic-product
# The secrets file is in our local git repo. Ask mhagen for access.
---
workspace:
base: /go
path: src/github.com/vmware/vic-product
pipeline:
clone:
image: plugins/git
tags: true
recursive: false
unified-ova-build:
image: gcr.io/eminent-nation-87317/vic-integration-test:1.32
pull: true
privileged: true
environment:
OVA_BUILD_SSH_KEY: ${OVA_BUILD_SSH_KEY}
OVA_BUILD_MACHINE_IP: ${OVA_BUILD_MACHINE_IP}
OVA_BUILD_USER: ${OVA_BUILD_USER}
PACKER_ESX_HOST: ${PACKER_ESX_HOST}
PACKER_USER: ${PACKER_USER}
PACKER_PASSWORD: ${PACKER_PASSWORD}
BUILD_PORTGROUP: ${BUILD_PORTGROUP}
BUILD_VICENGINE_REVISION: ${BUILD_VICENGINE_REVISION}
DRONE_TIMEOUT: ${DRONE_TIMEOUT}
DRONE_TIMEOUT_INACTIVITY: ${DRONE_TIMEOUT_INACTIVITY}
DRONE_BUILD_NUMBER: ${DRONE_BUILD_NUMBER}
commands:
- echo $OVA_BUILD_SSH_KEY > ova_id_rsa
- chmod 600 ova_id_rsa
- installer/scripts/ova-ssh-build.sh ova_id_rsa
bundle:
image: gcr.io/eminent-nation-87317/vic-integration-test:1.32
pull: true
commands:
- mkdir bundle
- cp bin/vic-*.ova bundle
- ls -al bundle
publish-gcs-builds:
image: maplain/drone-gcs:latest
pull: true
source: bundle
target: vic-product-ova-builds
acl:
- allUsers:READER
cache_control: public,max-age=3600
when:
status: success
publish-gcs-releases:
image: maplain/drone-gcs:latest
pull: true
source: bundle
target: vic-product-ova-releases
acl:
- allUsers:READER
cache_control: public,max-age=3600
when:
repo: vmware/vic-product
event: [ push, tag ]
branch: [ refs/tags/* ]
status: success
services: