You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

440 lines
9.3 KiB

  1. .gce_variables: &gce_variables
  2. GCE_USER: travis
  3. SSH_USER: $GCE_USER
  4. CLOUD_MACHINE_TYPE: "g1-small"
  5. CI_PLATFORM: "gce"
  6. PRIVATE_KEY: $GCE_PRIVATE_KEY
  7. .gce: &gce
  8. extends: .testcases
  9. # Test matrix. Leave the comments for markup scripts.
  10. .coreos_calico_aio_variables: &coreos_calico_aio_variables
  11. # stage: deploy-part1
  12. MOVED_TO_GROUP_VARS: "true"
  13. .ubuntu18_flannel_aio_variables: &ubuntu18_flannel_aio_variables
  14. # stage: deploy-part1
  15. MOVED_TO_GROUP_VARS: "true"
  16. .centos_weave_kubeadm_variables: &centos_weave_kubeadm_variables
  17. # stage: deploy-part1
  18. UPGRADE_TEST: "graceful"
  19. .ubuntu_canal_kubeadm_variables: &ubuntu_canal_kubeadm_variables
  20. # stage: deploy-part1
  21. MOVED_TO_GROUP_VARS: "true"
  22. .ubuntu_canal_ha_variables: &ubuntu_canal_ha_variables
  23. # stage: deploy-special
  24. MOVED_TO_GROUP_VARS: "true"
  25. .ubuntu_contiv_sep_variables: &ubuntu_contiv_sep_variables
  26. # stage: deploy-special
  27. MOVED_TO_GROUP_VARS: "true"
  28. .coreos_cilium_variables: &coreos_cilium_variables
  29. # stage: deploy-special
  30. MOVED_TO_GROUP_VARS: "true"
  31. .ubuntu_cilium_sep_variables: &ubuntu_cilium_sep_variables
  32. # stage: deploy-special
  33. MOVED_TO_GROUP_VARS: "true"
  34. .rhel7_weave_variables: &rhel7_weave_variables
  35. # stage: deploy-part1
  36. MOVED_TO_GROUP_VARS: "true"
  37. .centos7_flannel_addons_variables: &centos7_flannel_addons_variables
  38. # stage: deploy-part2
  39. MOVED_TO_GROUP_VARS: "true"
  40. .debian9_calico_variables: &debian9_calico_variables
  41. # stage: deploy-part2
  42. MOVED_TO_GROUP_VARS: "true"
  43. .coreos_canal_variables: &coreos_canal_variables
  44. # stage: deploy-part2
  45. MOVED_TO_GROUP_VARS: "true"
  46. .rhel7_canal_sep_variables: &rhel7_canal_sep_variables
  47. # stage: deploy-special
  48. MOVED_TO_GROUP_VARS: "true"
  49. .ubuntu_weave_sep_variables: &ubuntu_weave_sep_variables
  50. # stage: deploy-special
  51. MOVED_TO_GROUP_VARS: "true"
  52. .centos7_calico_ha_variables: &centos7_calico_ha_variables
  53. # stage: deploy-special
  54. MOVED_TO_GROUP_VARS: "true"
  55. .centos7_kube_router_variables: &centos7_kube_router_variables
  56. # stage: deploy-special
  57. MOVED_TO_GROUP_VARS: "true"
  58. .centos7_multus_calico_variables: &centos7_multus_calico_variables
  59. # stage: deploy-part2
  60. UPGRADE_TEST: "graceful"
  61. .coreos_alpha_weave_ha_variables: &coreos_alpha_weave_ha_variables
  62. # stage: deploy-special
  63. MOVED_TO_GROUP_VARS: "true"
  64. .coreos_kube_router_variables: &coreos_kube_router_variables
  65. # stage: deploy-special
  66. MOVED_TO_GROUP_VARS: "true"
  67. .ubuntu_rkt_sep_variables: &ubuntu_rkt_sep_variables
  68. # stage: deploy-part1
  69. MOVED_TO_GROUP_VARS: "true"
  70. .ubuntu_flannel_variables: &ubuntu_flannel_variables
  71. # stage: deploy-part2
  72. MOVED_TO_GROUP_VARS: "true"
  73. .ubuntu_kube_router_variables: &ubuntu_kube_router_variables
  74. # stage: deploy-special
  75. MOVED_TO_GROUP_VARS: "true"
  76. .opensuse_canal_variables: &opensuse_canal_variables
  77. # stage: deploy-part2
  78. MOVED_TO_GROUP_VARS: "true"
  79. # Builds for PRs only (premoderated by unit-tests step) and triggers (auto)
  80. ### PR JOBS PART1
  81. gce_ubuntu18-flannel-aio:
  82. stage: deploy-part1
  83. <<: *gce
  84. variables:
  85. <<: *gce_variables
  86. <<: *ubuntu18_flannel_aio_variables
  87. when: on_success
  88. except: ['triggers']
  89. only: [/^pr-.*$/]
  90. ### PR JOBS PART2
  91. gce_coreos-calico-aio:
  92. stage: deploy-part2
  93. <<: *gce
  94. variables:
  95. <<: *gce_variables
  96. <<: *coreos_calico_aio_variables
  97. when: on_success
  98. except: ['triggers']
  99. only: [/^pr-.*$/]
  100. gce_centos7-flannel-addons:
  101. stage: deploy-part2
  102. <<: *gce
  103. variables:
  104. <<: *gce_variables
  105. <<: *centos7_flannel_addons_variables
  106. when: on_success
  107. except: ['triggers']
  108. only: [/^pr-.*$/]
  109. ### MANUAL JOBS
  110. gce_centos-weave-kubeadm-sep:
  111. stage: deploy-part2
  112. <<: *gce
  113. variables:
  114. <<: *gce_variables
  115. <<: *centos_weave_kubeadm_variables
  116. when: on_success
  117. only: ['triggers']
  118. gce_ubuntu-weave-sep:
  119. stage: deploy-part2
  120. <<: *gce
  121. variables:
  122. <<: *gce_variables
  123. <<: *ubuntu_weave_sep_variables
  124. when: manual
  125. only: ['triggers']
  126. gce_coreos-calico-sep-triggers:
  127. stage: deploy-part2
  128. <<: *gce
  129. variables:
  130. <<: *gce_variables
  131. <<: *coreos_calico_aio_variables
  132. when: on_success
  133. only: ['triggers']
  134. gce_ubuntu-canal-ha-triggers:
  135. stage: deploy-special
  136. <<: *gce
  137. variables:
  138. <<: *gce_variables
  139. <<: *ubuntu_canal_ha_variables
  140. when: on_success
  141. only: ['triggers']
  142. gce_centos7-flannel-addons-triggers:
  143. stage: deploy-part2
  144. <<: *gce
  145. variables:
  146. <<: *gce_variables
  147. <<: *centos7_flannel_addons_variables
  148. when: on_success
  149. only: ['triggers']
  150. gce_ubuntu-weave-sep-triggers:
  151. stage: deploy-part2
  152. <<: *gce
  153. variables:
  154. <<: *gce_variables
  155. <<: *ubuntu_weave_sep_variables
  156. when: on_success
  157. only: ['triggers']
  158. # More builds for PRs/merges (manual) and triggers (auto)
  159. gce_ubuntu-canal-ha:
  160. stage: deploy-special
  161. <<: *gce
  162. variables:
  163. <<: *gce_variables
  164. <<: *ubuntu_canal_ha_variables
  165. when: manual
  166. except: ['triggers']
  167. only: ['master', /^pr-.*$/]
  168. gce_ubuntu-canal-kubeadm:
  169. stage: deploy-part2
  170. <<: *gce
  171. variables:
  172. <<: *gce_variables
  173. <<: *ubuntu_canal_kubeadm_variables
  174. when: manual
  175. except: ['triggers']
  176. only: ['master', /^pr-.*$/]
  177. gce_ubuntu-canal-kubeadm-triggers:
  178. stage: deploy-part2
  179. <<: *gce
  180. variables:
  181. <<: *gce_variables
  182. <<: *ubuntu_canal_kubeadm_variables
  183. when: on_success
  184. only: ['triggers']
  185. gce_ubuntu-flannel-ha:
  186. stage: deploy-part2
  187. <<: *gce
  188. variables:
  189. <<: *gce_variables
  190. <<: *ubuntu_flannel_variables
  191. when: manual
  192. except: ['triggers']
  193. gce_centos-weave-kubeadm-triggers:
  194. stage: deploy-part2
  195. <<: *gce
  196. variables:
  197. <<: *gce_variables
  198. <<: *centos_weave_kubeadm_variables
  199. when: on_success
  200. only: ['triggers']
  201. gce_ubuntu-contiv-sep:
  202. stage: deploy-special
  203. <<: *gce
  204. variables:
  205. <<: *gce_variables
  206. <<: *ubuntu_contiv_sep_variables
  207. when: manual
  208. except: ['triggers']
  209. only: ['master', /^pr-.*$/]
  210. gce_coreos-cilium:
  211. stage: deploy-special
  212. <<: *gce
  213. variables:
  214. <<: *gce_variables
  215. <<: *coreos_cilium_variables
  216. when: manual
  217. except: ['triggers']
  218. only: ['master', /^pr-.*$/]
  219. gce_ubuntu-cilium-sep:
  220. stage: deploy-special
  221. <<: *gce
  222. variables:
  223. <<: *gce_variables
  224. <<: *ubuntu_cilium_sep_variables
  225. when: manual
  226. except: ['triggers']
  227. only: ['master', /^pr-.*$/]
  228. gce_rhel7-weave:
  229. stage: deploy-part2
  230. <<: *gce
  231. variables:
  232. <<: *gce_variables
  233. <<: *rhel7_weave_variables
  234. when: manual
  235. except: ['triggers']
  236. only: ['master', /^pr-.*$/]
  237. gce_rhel7-weave-triggers:
  238. stage: deploy-part2
  239. <<: *gce
  240. variables:
  241. <<: *gce_variables
  242. <<: *rhel7_weave_variables
  243. when: on_success
  244. only: ['triggers']
  245. gce_debian9-calico-upgrade:
  246. stage: deploy-part2
  247. <<: *gce
  248. variables:
  249. <<: *gce_variables
  250. <<: *debian9_calico_variables
  251. when: manual
  252. except: ['triggers']
  253. only: ['master', /^pr-.*$/]
  254. gce_debian9-calico-triggers:
  255. stage: deploy-part2
  256. <<: *gce
  257. variables:
  258. <<: *gce_variables
  259. <<: *debian9_calico_variables
  260. when: on_success
  261. only: ['triggers']
  262. gce_coreos-canal:
  263. stage: deploy-part2
  264. <<: *gce
  265. variables:
  266. <<: *gce_variables
  267. <<: *coreos_canal_variables
  268. when: manual
  269. except: ['triggers']
  270. only: ['master', /^pr-.*$/]
  271. gce_coreos-canal-triggers:
  272. stage: deploy-part2
  273. <<: *gce
  274. variables:
  275. <<: *gce_variables
  276. <<: *coreos_canal_variables
  277. when: on_success
  278. only: ['triggers']
  279. gce_rhel7-canal-sep:
  280. stage: deploy-special
  281. <<: *gce
  282. variables:
  283. <<: *gce_variables
  284. <<: *rhel7_canal_sep_variables
  285. when: manual
  286. except: ['triggers']
  287. only: ['master', /^pr-.*$/]
  288. gce_rhel7-canal-sep-triggers:
  289. stage: deploy-part2
  290. <<: *gce
  291. variables:
  292. <<: *gce_variables
  293. <<: *rhel7_canal_sep_variables
  294. when: on_success
  295. only: ['triggers']
  296. gce_centos7-calico-ha:
  297. stage: deploy-special
  298. <<: *gce
  299. variables:
  300. <<: *gce_variables
  301. <<: *centos7_calico_ha_variables
  302. when: manual
  303. except: ['triggers']
  304. only: ['master', /^pr-.*$/]
  305. gce_centos7-calico-ha-triggers:
  306. stage: deploy-part2
  307. <<: *gce
  308. variables:
  309. <<: *gce_variables
  310. <<: *centos7_calico_ha_variables
  311. when: on_success
  312. only: ['triggers']
  313. gce_centos7-kube-router:
  314. stage: deploy-special
  315. <<: *gce
  316. variables:
  317. <<: *gce_variables
  318. <<: *centos7_kube_router_variables
  319. when: manual
  320. except: ['triggers']
  321. only: ['master', /^pr-.*$/]
  322. gce_centos7-multus-calico:
  323. stage: deploy-part2
  324. <<: *gce
  325. variables:
  326. <<: *gce_variables
  327. <<: *centos7_multus_calico_variables
  328. when: manual
  329. except: ['triggers']
  330. only: ['master', /^pr-.*$/]
  331. gce_opensuse-canal:
  332. stage: deploy-part2
  333. <<: *gce
  334. variables:
  335. <<: *gce_variables
  336. <<: *opensuse_canal_variables
  337. when: manual
  338. except: ['triggers']
  339. only: ['master', /^pr-.*$/]
  340. # no triggers yet https://github.com/kubernetes-incubator/kargo/issues/613
  341. gce_coreos-alpha-weave-ha:
  342. stage: deploy-special
  343. <<: *gce
  344. variables:
  345. <<: *gce_variables
  346. <<: *coreos_alpha_weave_ha_variables
  347. when: manual
  348. except: ['triggers']
  349. only: ['master', /^pr-.*$/]
  350. gce_coreos-kube-router:
  351. stage: deploy-special
  352. <<: *gce
  353. variables:
  354. <<: *gce_variables
  355. <<: *coreos_kube_router_variables
  356. when: manual
  357. except: ['triggers']
  358. only: ['master', /^pr-.*$/]
  359. gce_ubuntu-rkt-sep:
  360. stage: deploy-part2
  361. <<: *gce
  362. variables:
  363. <<: *gce_variables
  364. <<: *ubuntu_rkt_sep_variables
  365. when: manual
  366. except: ['triggers']
  367. only: ['master', /^pr-.*$/]
  368. gce_ubuntu-kube-router-sep:
  369. stage: deploy-special
  370. <<: *gce
  371. variables:
  372. <<: *gce_variables
  373. <<: *ubuntu_kube_router_variables
  374. when: manual
  375. except: ['triggers']
  376. only: ['master', /^pr-.*$/]