-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathbump-k8s.yml
146 lines (137 loc) · 3.57 KB
/
bump-k8s.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
---
resource_types:
- name: github-release-with-version-filtering
type: docker-image
source:
repository: pcfkubo/github-release-resource
tag: filter-version
resources:
- name: k8s-release
type: github-release-with-version-filtering
source:
owner: kubernetes
repository: kubernetes
# only patches get updated
version_filter: "< 1.19.0"
access_token: ((github-token-key))
- name: metrics-server-release
type: github-release
source:
owner: kubernetes-incubator
repository: metrics-server
access_token: ((github-token-key))
- name: coredns-release
type: github-release-with-version-filtering
source:
owner: coredns
repository: coredns
access_token: ((github-token-key))
- name: git-kubernetes
type: git
source:
uri: https://github.com/kubernetes/kubernetes.git
branch: master
- name: git-kubo-ci
type: git
source:
uri: [email protected]:cloudfoundry-incubator/kubo-ci.git
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))
- name: git-kubo-release-windows
type: git
source:
uri: [email protected]:cloudfoundry-incubator/kubo-release-windows.git
branch: develop
private_key: ((git-ssh-key.private_key))
groups:
- name: bump-k8s
jobs:
- bump-k8s
- name: bump-images-dependencies
jobs:
- bump-images-dependencies
jobs:
- name: bump-k8s
plan:
- in_parallel:
- get: git-kubo-ci
- get: git-kubo-release
- get: git-kubo-release-windows
- get: git-kubernetes
- get: k8s-release
trigger: true
- in_parallel:
- task: bump-k8s
config: &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-k8s.sh
inputs:
- name: git-kubo-ci
- name: git-kubo-release
- name: k8s-release
- name: git-kubernetes
params:
GCS_JSON_KEY: ((gcs-json-key))
CFCR_USER_TOKEN: ((cfcr-git-user-token))
GIT_SSH_KEY: |
((git-ssh-key.private_key))
- task: bump-k8s-windows
config:
<<: *config
run:
path: git-kubo-ci/scripts/bump-k8s.sh
inputs:
- name: git-kubo-ci
- name: git-kubo-release-windows
- name: k8s-release
- name: git-kubernetes
params:
REPO: windows
GCS_JSON_KEY: ((gcs-json-key))
CFCR_USER_TOKEN: ((cfcr-git-user-token))
GIT_SSH_KEY: |
((git-ssh-key.private_key))
- task: bump-k8s-ci
config:
<<: *config
run:
path: git-kubo-ci/scripts/bump-k8s.sh
inputs:
- name: git-kubo-ci
- name: k8s-release
- name: git-kubernetes
params:
REPO: ci
GCS_JSON_KEY: ((gcs-json-key))
CFCR_USER_TOKEN: ((cfcr-git-user-token))
GIT_SSH_KEY: |
((git-ssh-key.private_key))
- name: bump-images-dependencies
plan:
- in_parallel:
- get: metrics-server-release
trigger: true
- get: coredns-release
trigger: true
- get: git-kubo-ci
- get: git-kubo-release
- task: bump-spec
privileged: true
file: git-kubo-ci/tasks/bump/bump-k8s-spec.yml
params:
GCS_JSON_KEY: ((gcs-json-key))
- put: git-kubo-release
params:
repository: git-kubo-release-output