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.

271 lines
4.8 KiB

  1. ---
  2. .gce_variables: &gce_variables
  3. GCE_USER: travis
  4. SSH_USER: $GCE_USER
  5. CLOUD_MACHINE_TYPE: "g1-small"
  6. CI_PLATFORM: "gce"
  7. PRIVATE_KEY: $GCE_PRIVATE_KEY
  8. .cache: &cache
  9. cache:
  10. key: "$CI_BUILD_REF_NAME"
  11. paths:
  12. - downloads/
  13. - $HOME/.cache
  14. .gce: &gce
  15. extends: .testcases
  16. <<: *cache
  17. variables:
  18. <<: *gce_variables
  19. tags:
  20. - gce
  21. .centos_weave_kubeadm_variables: &centos_weave_kubeadm_variables
  22. # stage: deploy-part1
  23. UPGRADE_TEST: "graceful"
  24. .centos7_multus_calico_variables: &centos7_multus_calico_variables
  25. # stage: deploy-gce
  26. UPGRADE_TEST: "graceful"
  27. # Builds for PRs only (premoderated by unit-tests step) and triggers (auto)
  28. ### PR JOBS PART1
  29. gce_ubuntu18-flannel-aio:
  30. stage: deploy-part1
  31. <<: *gce
  32. when: manual
  33. except: ['triggers']
  34. only: [/^pr-.*$/]
  35. ### PR JOBS PART2
  36. gce_coreos-calico-aio:
  37. stage: deploy-gce
  38. <<: *gce
  39. when: on_success
  40. except: ['triggers']
  41. only: [/^pr-.*$/]
  42. gce_centos7-flannel-addons:
  43. stage: deploy-gce
  44. <<: *gce
  45. when: manual
  46. except: ['triggers']
  47. only: [/^pr-.*$/]
  48. ### MANUAL JOBS
  49. gce_centos-weave-kubeadm-sep:
  50. stage: deploy-gce
  51. <<: *gce
  52. variables:
  53. <<: *centos_weave_kubeadm_variables
  54. when: on_success
  55. only: ['triggers']
  56. gce_ubuntu-weave-sep:
  57. stage: deploy-gce
  58. <<: *gce
  59. when: manual
  60. only: ['triggers']
  61. gce_coreos-calico-sep-triggers:
  62. stage: deploy-gce
  63. <<: *gce
  64. when: on_success
  65. only: ['triggers']
  66. gce_ubuntu-canal-ha-triggers:
  67. stage: deploy-special
  68. <<: *gce
  69. when: on_success
  70. only: ['triggers']
  71. gce_centos7-flannel-addons-triggers:
  72. stage: deploy-gce
  73. <<: *gce
  74. when: on_success
  75. only: ['triggers']
  76. gce_ubuntu-weave-sep-triggers:
  77. stage: deploy-gce
  78. <<: *gce
  79. when: on_success
  80. only: ['triggers']
  81. # More builds for PRs/merges (manual) and triggers (auto)
  82. gce_ubuntu-canal-ha:
  83. stage: deploy-special
  84. <<: *gce
  85. when: manual
  86. except: ['triggers']
  87. only: ['master', /^pr-.*$/]
  88. gce_ubuntu-canal-kubeadm:
  89. stage: deploy-gce
  90. <<: *gce
  91. when: manual
  92. except: ['triggers']
  93. only: ['master', /^pr-.*$/]
  94. gce_ubuntu-canal-kubeadm-triggers:
  95. stage: deploy-gce
  96. <<: *gce
  97. when: on_success
  98. only: ['triggers']
  99. gce_ubuntu-flannel-ha:
  100. stage: deploy-gce
  101. <<: *gce
  102. when: manual
  103. except: ['triggers']
  104. gce_centos-weave-kubeadm-triggers:
  105. stage: deploy-gce
  106. <<: *gce
  107. variables:
  108. <<: *centos_weave_kubeadm_variables
  109. when: on_success
  110. only: ['triggers']
  111. gce_ubuntu-contiv-sep:
  112. stage: deploy-special
  113. <<: *gce
  114. when: manual
  115. except: ['triggers']
  116. only: ['master', /^pr-.*$/]
  117. gce_coreos-cilium:
  118. stage: deploy-special
  119. <<: *gce
  120. when: manual
  121. except: ['triggers']
  122. only: ['master', /^pr-.*$/]
  123. gce_ubuntu-cilium-sep:
  124. stage: deploy-special
  125. <<: *gce
  126. when: manual
  127. except: ['triggers']
  128. only: ['master', /^pr-.*$/]
  129. gce_rhel7-weave:
  130. stage: deploy-gce
  131. <<: *gce
  132. when: manual
  133. except: ['triggers']
  134. only: ['master', /^pr-.*$/]
  135. gce_rhel7-weave-triggers:
  136. stage: deploy-gce
  137. <<: *gce
  138. when: on_success
  139. only: ['triggers']
  140. gce_debian9-calico-upgrade:
  141. stage: deploy-gce
  142. <<: *gce
  143. when: manual
  144. except: ['triggers']
  145. only: ['master', /^pr-.*$/]
  146. gce_debian9-calico-triggers:
  147. stage: deploy-gce
  148. <<: *gce
  149. when: on_success
  150. only: ['triggers']
  151. gce_coreos-canal:
  152. stage: deploy-gce
  153. <<: *gce
  154. when: manual
  155. except: ['triggers']
  156. only: ['master', /^pr-.*$/]
  157. gce_coreos-canal-triggers:
  158. stage: deploy-gce
  159. <<: *gce
  160. when: on_success
  161. only: ['triggers']
  162. gce_rhel7-canal-sep:
  163. stage: deploy-special
  164. <<: *gce
  165. when: manual
  166. except: ['triggers']
  167. only: ['master', /^pr-.*$/]
  168. gce_rhel7-canal-sep-triggers:
  169. stage: deploy-gce
  170. <<: *gce
  171. when: on_success
  172. only: ['triggers']
  173. gce_centos7-calico-ha:
  174. stage: deploy-special
  175. <<: *gce
  176. when: manual
  177. except: ['triggers']
  178. only: ['master', /^pr-.*$/]
  179. gce_centos7-calico-ha-triggers:
  180. stage: deploy-gce
  181. <<: *gce
  182. when: on_success
  183. only: ['triggers']
  184. gce_centos7-kube-router:
  185. stage: deploy-special
  186. <<: *gce
  187. when: manual
  188. except: ['triggers']
  189. only: ['master', /^pr-.*$/]
  190. gce_centos7-multus-calico:
  191. stage: deploy-gce
  192. <<: *gce
  193. variables:
  194. <<: *centos7_multus_calico_variables
  195. when: manual
  196. except: ['triggers']
  197. only: ['master', /^pr-.*$/]
  198. gce_opensuse-canal:
  199. stage: deploy-gce
  200. <<: *gce
  201. when: manual
  202. except: ['triggers']
  203. only: ['master', /^pr-.*$/]
  204. # no triggers yet https://github.com/kubernetes-incubator/kargo/issues/613
  205. gce_coreos-alpha-weave-ha:
  206. stage: deploy-special
  207. <<: *gce
  208. when: manual
  209. except: ['triggers']
  210. only: ['master', /^pr-.*$/]
  211. gce_coreos-kube-router:
  212. stage: deploy-special
  213. <<: *gce
  214. when: manual
  215. except: ['triggers']
  216. only: ['master', /^pr-.*$/]
  217. gce_ubuntu-rkt-sep:
  218. stage: deploy-gce
  219. <<: *gce
  220. when: manual
  221. except: ['triggers']
  222. only: ['master', /^pr-.*$/]
  223. gce_ubuntu-kube-router-sep:
  224. stage: deploy-special
  225. <<: *gce
  226. when: manual
  227. except: ['triggers']
  228. only: ['master', /^pr-.*$/]