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.

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