This repository has been archived by the owner on Mar 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 249
/
pipeline.yml
202 lines (194 loc) · 5.38 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
groups: []
resources:
- name: pcf-pipelines-tarball
type: pivnet
source:
api_token: {{pivnet_token}}
product_slug: pcf-automation
product_version: v0.23.1
- name: pcf-pipelines-utils
type: git
source:
uri: https://github.com/pivotalservices/concourse-pipeline-samples.git
- name: product-release
type: pivnet
source:
api_token: {{pivnet_token}}
product_slug: {{product_slug}}
product_version: {{product_version}}
sort_by: semver
resource_types:
- name: pivnet
type: docker-image
source:
repository: pivotalcf/pivnet-resource
tag: latest-final
jobs:
- name: upload-product
plan:
- aggregate:
- do:
- get: pcf-pipelines-tarball
- task: unpack-tarball
config:
platform: linux
image_resource:
type: docker-image
source:
repository: czero/rootfs
run:
path: bash
args:
- -c
- tar -xvf pcf-pipelines-tarball/*.tgz
inputs:
- name: pcf-pipelines-tarball
path: ""
outputs:
- name: pcf-pipelines
path: ""
- get: pivnet-product
resource: product-release
params:
globs: ["((product_globs))"]
- task: upload-tile
file: pcf-pipelines/tasks/upload-product-and-stemcell/task.yml
params:
IAAS: {{iaas_type}}
NO_PROXY: {{company_proxy_domain}}
OM_IP: {{opsman_ip_address}}
OPS_MGR_PWD: {{opsman_admin_password}}
OPS_MGR_USR: {{opsman_admin_username}}
OPSMAN_CLIENT_ID: {{opsman_client_id}}
OPSMAN_CLIENT_SECRET: {{opsman_client_secret}}
OPSMAN_DOMAIN_OR_IP_ADDRESS: {{opsman_domain}}
PIVNET_API_TOKEN: {{pivnet_token}}
- name: stage-product
plan:
- aggregate:
- do:
- get: pcf-pipelines-tarball
- task: unpack-tarball
config:
platform: linux
image_resource:
type: docker-image
source:
repository: czero/rootfs
run:
path: bash
args:
- -c
- tar -xvf pcf-pipelines-tarball/*.tgz
inputs:
- name: pcf-pipelines-tarball
path: ""
outputs:
- name: pcf-pipelines
path: ""
- get: pivnet-product
passed:
- upload-product
trigger: true
resource: product-release
params:
globs: ["((product_globs))"]
- task: stage
file: pcf-pipelines/tasks/stage-product/task.yml
params:
OPSMAN_CLIENT_ID: {{opsman_client_id}}
OPSMAN_CLIENT_SECRET: {{opsman_client_secret}}
OPSMAN_DOMAIN_OR_IP_ADDRESS: {{opsman_domain}}
OPSMAN_PASSWORD: {{opsman_admin_password}}
OPSMAN_USERNAME: {{opsman_admin_username}}
- name: configure-product
plan:
- aggregate:
- do:
- get: pcf-pipelines-tarball
- task: unpack-tarball
config:
platform: linux
image_resource:
type: docker-image
source:
repository: czero/rootfs
run:
path: bash
args:
- -c
- tar -xvf pcf-pipelines-tarball/*.tgz
inputs:
- name: pcf-pipelines-tarball
path: ""
outputs:
- name: pcf-pipelines
path: ""
- get: pivnet-product
passed:
- stage-product
resource: product-release
trigger: true
params:
globs: []
- get: pcf-pipelines-utils
- task: configure-tile
file: pcf-pipelines-utils/tasks/pcf/configure-tile/task.yml
params:
OPSMAN_DOMAIN_OR_IP_ADDRESS: {{opsman_domain}}
OPSMAN_USERNAME: {{opsman_admin_username}}
OPSMAN_PASSWORD: {{opsman_admin_password}}
OPSMAN_CLIENT_ID: {{opsman_client_id}}
OPSMAN_CLIENT_SECRET: {{opsman_client_secret}}
TILE_PROPERTIES: {{properties}}
TILE_NETWORK: {{networks}}
TILE_RESOURCES: {{resources}}
TILE_PRODUCT_NAME: {{product_name}}
- task: disable-errands
file: pcf-pipelines/tasks/disable-errands/task.yml
params:
ERRANDS_TO_DISABLE: {{errands_to_disable}}
OPSMAN_CLIENT_ID: {{opsman_client_id}}
OPSMAN_CLIENT_SECRET: {{opsman_client_secret}}
OPSMAN_DOMAIN_OR_IP_ADDRESS: {{opsman_domain}}
OPSMAN_PASSWORD: {{opsman_admin_password}}
OPSMAN_USERNAME: {{opsman_admin_username}}
PRODUCT_NAME: {{product_name}}
- name: deploy-product
plan:
- aggregate:
- do:
- get: pcf-pipelines-tarball
- task: unpack-tarball
config:
platform: linux
image_resource:
type: docker-image
source:
repository: czero/rootfs
run:
path: bash
args:
- -c
- tar -xvf pcf-pipelines-tarball/*.tgz
inputs:
- name: pcf-pipelines-tarball
path: ""
outputs:
- name: pcf-pipelines
path: ""
- get: pivnet-product
passed:
- configure-product
resource: product-release
trigger: true
params:
globs: []
- task: apply-changes
file: pcf-pipelines/tasks/apply-changes/task.yml
params:
OPSMAN_CLIENT_ID: {{opsman_client_id}}
OPSMAN_CLIENT_SECRET: {{opsman_client_secret}}
OPSMAN_DOMAIN_OR_IP_ADDRESS: {{opsman_domain}}
OPSMAN_PASSWORD: {{opsman_admin_password}}
OPSMAN_USERNAME: {{opsman_admin_username}}