This repository has been archived by the owner on Jun 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pipeline.yml
144 lines (130 loc) · 3.49 KB
/
pipeline.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
resource_types:
- name: pivnet
type: docker-image
source:
repository: pivotalcf/pivnet-resource
tag: latest-final
- name: gcs
type: docker-image
source:
repository: frodenas/gcs-resource
- name: azure-blobstore
type: docker-image
source:
repository: pcfabr/azure-blobstore-resource
resources:
- name: ubuntu-image
type: docker-image
source: { repository: ubuntu }
- name: pipeline-tasks
type: git
source:
uri: ((tasks.uri))
branch: master
username: ((tasks.username))
password: ((tasks.password))
- name: stembuild-release
type: pivnet
source:
api_token: ((pivnet_token))
product_slug: stemcells-windows-server
product_version: ((OS_VERSION)).(.*)
sort_by: semver
#- name: stembuild-release
# type: github-release
# source:
# owner: cloudfoundry-incubator
# repository: stembuild
# tag_filter: ((OS_VERSION)).(.*)
- name: lgpo
type: s3
source:
access_key_id: ((s3.access_key_id))
bucket: ((s3.bucket.lgpo))
secret_access_key: ((s3.secret_access_key))
endpoint: ((s3.endpoint))
versioned_file: lgpo.zip
#regexp: 0.0.(.*)/LGPO.zip
#- name: lgpo
# type: gcs
# source:
# json_key: ((gcs.json-key))
# bucket: ((gcs.bucket.stemcell))
# versioned_file: lgpo.zip
#- name: lgpo
# type: azure-blobstore
# source:
# storage_account_name: ((azure.storage_account_name))
# storage_account_key: ((azure.storage_account_key))
# container: ((azure.container.lgpo))
# versioned_file: lgpo.zip
- name: stemcell-store
type: s3
source:
access_key_id: ((s3.access_key_id))
secret_access_key: ((s3.secret_access_key))
bucket: ((s3.bucket.stemcell))
endpoint: ((s3.endpoint))
regexp: bosh-stemcell-(.*)-vsphere.*\.tgz
#- name: stemcell-store
# type: gcs
# source:
# json_key: ((gcs.json-key))
# bucket: ((gcs.bucket.stemcell))
# regexp: bosh-stemcell-(.*)-vsphere.*\.tgz
#- name: stemcell-store
# type: azure-blobstore
# source:
# storage_account_name: ((azure.storage_account_name))
# storage_account_key: ((azure.storage_account_key))
# container: ((azure.container.stemcell))
# regexp: bosh-stemcell-(.*)-vsphere.*\.tgz
jobs:
- name: construct
plan:
- get: ubuntu-image
- get: pipeline-tasks
- get: lgpo
- get: stembuild-release
params:
globs:
- stembuild-linux-*
- task: construct
file: pipeline-tasks/tasks/construct.yml
image: ubuntu-image
input_mapping:
stembuild: stembuild-release
lgpo: lgpo
params:
vcenter_ca_certs: ((vcenter-ca-certs))
vcenter_url: ((vcenter-url))
vcenter_username: ((vcenter-username))
vcenter_password: ((vcenter-password))
vm_inventory_path: ((vm-inventory-path))
vm_ip: ((vm-ip))
vm_password: ((vm-password))
vm_username: ((vm-username))
- name: package
plan:
- get: ubuntu-image
- get: pipeline-tasks
- get: stembuild-release
trigger: true
passed: [construct]
params:
globs:
- stembuild-linux-*
- task: construct
file: pipeline-tasks/tasks/package.yml
image: ubuntu-image
input_mapping:
stembuild: stembuild-release
params:
vcenter_ca_certs: ((vcenter-ca-certs))
vcenter_url: ((vcenter-url))
vcenter_username: ((vcenter-username))
vcenter_password: ((vcenter-password))
vm_inventory_path: ((vm-inventory-path))
- put: stemcell-store
params:
file: stemcell/*.tgz