-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.yml
105 lines (104 loc) · 3.98 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
---
resource_types:
- name: pivnet
type: docker-image
source:
repository: pivotalcf/pivnet-resource
tag: latest-final
resources:
- name: platform-automation
type: pivnet
source:
product_slug: platform-automation
api_token: ((pivnet-token))
- name: config
type: git
source:
uri: ((pipeline-repo))
private_key: ((plat-auto-pipes-deploy-key.private_key))
branch: master
jobs:
- name: install-ops-manager
serial: true
plan:
- get: platform-automation-image
resource: platform-automation
params:
globs: ["*image*.tgz"]
unpack: true
- get: platform-automation-tasks
resource: platform-automation
params:
globs: ["*tasks*.zip"]
unpack: true
- get: config
- task: credhub-interpolate
image: platform-automation-image
file: platform-automation-tasks/tasks/credhub-interpolate.yml
params:
CREDHUB_CLIENT: ((credhub-client))
CREDHUB_SECRET: ((credhub-secret))
CREDHUB_SERVER: https://credhub.haas-403.pez.pivotal.io:8844
PREFIX: /concourse/main
CREDHUB_CA_CERT: |
-----BEGIN CERTIFICATE-----
MIIDzjCCAragAwIBAgIVAJYi4Fz+kySerE7ynjQAh/bY5rJIMA0GCSqGSIb3DQEB
CwUAMB8xCzAJBgNVBAYTAlVTMRAwDgYDVQQKDAdQaXZvdGFsMB4XDTE5MTAxNzAx
MjIyOFoXDTIxMTAxNzAxMjIyOFowRTELMAkGA1UEBhMCVVMxEDAOBgNVBAoMB1Bp
dm90YWwxJDAiBgNVBAMMG3VhYS5oYWFzLTQwMy5wZXoucGl2b3RhbC5pbzCCASIw
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB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interpolated-config
- task: download-product
image: platform-automation-image
file: platform-automation-tasks/tasks/download-product.yml
params:
CONFIG_FILE: download-ops-manager.yml
input_mapping:
config: interpolated-config
- task: create-vm
image: platform-automation-image
file: platform-automation-tasks/tasks/create-vm.yml
input_mapping:
config: interpolated-config
state: config
image: download-product
ensure:
do:
- task: make-commit
image: platform-automation-image
file: platform-automation-tasks/tasks/make-git-commit.yml
input_mapping:
repository: config
file-source: generated-state
output_mapping:
repository-commit: config-commit
params:
FILE_SOURCE_PATH: state.yml
FILE_DESTINATION_PATH: state.yml
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_AUTHOR_NAME: "Platform Automation Bot"
COMMIT_MESSAGE: 'Update state file'
- put: config
params:
repository: config-commit
merge: true