-
Notifications
You must be signed in to change notification settings - Fork 28
/
bump-golang.yml
183 lines (171 loc) · 4.51 KB
/
bump-golang.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
---
resource_types:
- name: gcs
type: docker-image
source:
repository: frodenas/gcs-resource
resources:
- name: git-kubo-ci
type: git
source:
uri: [email protected]:cloudfoundry-incubator/kubo-ci
branch: master
private_key: ((git-ssh-key.private_key))
- name: git-kubo-release
type: git
source:
uri: [email protected]:cloudfoundry-incubator/kubo-release.git
branch: develop
private_key: ((git-ssh-key.private_key))
ignore_paths:
- '*.md'
- 'LICENSE'
- 'NOTICE'
- name: git-docker-boshrelease
type: git
source:
uri: [email protected]:cloudfoundry-incubator/docker-boshrelease.git
branch: master
private_key: ((git-ssh-key.private_key))
ignore_paths:
- '*.md'
- 'LICENSE'
- 'NOTICE'
- name: git-cfcr-etcd-release
type: git
source:
uri: [email protected]:cloudfoundry-incubator/cfcr-etcd-release.git
branch: master
private_key: ((git-ssh-key.private_key))
ignore_paths:
- '*.md'
- 'LICENSE'
- 'NOTICE'
- name: golang-release
type: git
source:
uri: https://github.com/bosh-packages/golang-release
branch: master
- name: golang-version
type: gcs
source:
json_key: ((gcs-json-key))
bucket: kubo-pipeline-store
versioned_file: component-golang-version
############################################
# Jobs
############################################
jobs:
- name: update-component-golang-version
#disable_manual_trigger: true
plan:
- in_parallel:
- get: git-kubo-ci
- get: golang-release
trigger: true
- get: golang-version
- task: get-latest-version
config:
platform: linux
image_resource:
type: docker-image
source:
repository: gcr.io/cf-pks-golf/pcfkubo/kubo-ci
tag: stable
run:
path: git-kubo-ci/scripts/bump-golang-component-version.sh
inputs:
- name: git-kubo-ci
- name: golang-release
- name: golang-version
outputs:
- name: modified-golang-version
- put: golang-version
params:
file: modified-golang-version/component-golang-version
- name: bump-docker-boshrelease-golang
plan:
- in_parallel:
- get: git-kubo-ci
- get: git-docker-boshrelease
- get: golang-release
- get: golang-version
trigger: true
passed: [ 'update-component-golang-version' ]
- task: bump-release-golang
file: git-kubo-ci/tasks/bump-release-golang.yml
input_mapping: { release: git-docker-boshrelease }
params:
GCS_JSON_KEY: ((gcs-json-key))
- task: check-create-release
file: git-kubo-ci/tasks/bump/check-create-release.yml
- put: git-docker-boshrelease
params:
repository: modified-release
rebase: true
- name: bump-kubo-release-golang
plan:
- in_parallel:
- get: git-kubo-ci
- get: git-kubo-release
- get: golang-release
- get: golang-version
trigger: true
passed: [ 'update-component-golang-version' ]
- task: bump-release-golang
file: git-kubo-ci/tasks/bump-release-golang.yml
input_mapping: { release: git-kubo-release }
params:
GCS_JSON_KEY: ((gcs-json-key))
- task: check-create-release
file: git-kubo-ci/tasks/bump/check-create-release.yml
- put: git-kubo-release
params:
repository: modified-release
rebase: true
- name: bump-cfcr-etcd-release-golang
plan:
- in_parallel:
- get: git-kubo-ci
- get: git-cfcr-etcd-release
- get: golang-release
- get: golang-version
trigger: true
passed: [ 'update-component-golang-version' ]
- task: bump-release-golang
file: git-kubo-ci/tasks/bump-release-golang.yml
input_mapping: { release: git-cfcr-etcd-release }
params:
GCS_JSON_KEY: ((gcs-json-key))
- task: check-create-release
file: git-kubo-ci/tasks/bump/check-create-release.yml
- put: git-cfcr-etcd-release
params:
repository: modified-release
rebase: true
- name: bump-docker-image-golang
plan:
- in_parallel:
- get: git-kubo-ci
- get: golang-version
trigger: true
passed: [ 'update-component-golang-version' ]
- task: bump-golang
config:
platform: linux
image_resource:
type: docker-image
source:
repository: gcr.io/cf-pks-golf/pcfkubo/kubo-ci
tag: stable
run:
path: git-kubo-ci/scripts/bump-docker-image-golang.sh
inputs:
- name: git-kubo-ci
- name: golang-version
outputs:
- name: git-kubo-ci-output
- put: git-kubo-ci
params:
repository: git-kubo-ci-output
rebase: true