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

477 lines
13 KiB

  1. ---
  2. kind: pipeline
  3. type: kubernetes
  4. name: linter
  5. platform:
  6. os: linux
  7. arch: amd64
  8. trigger:
  9. event:
  10. - push
  11. - pull_request
  12. steps:
  13. - name: 代码检查
  14. image: golangci/golangci-lint:v1.40.1
  15. environment:
  16. GO111MODULE: on
  17. GOPROXY: https://goproxy.cn,direct
  18. commands:
  19. - make lint
  20. ---
  21. kind: pipeline
  22. name: base-server
  23. type: kubernetes
  24. platform:
  25. os: linux
  26. arch: amd64
  27. trigger:
  28. event:
  29. - tag
  30. volumes:
  31. - name: docker
  32. host:
  33. path: /var/run/
  34. steps:
  35. # - name: 代码检查
  36. # image: golangci/golangci-lint:v1.40.1
  37. # environment:
  38. # GO111MODULE: on
  39. # GOPROXY: https://goproxy.cn,direct
  40. # commands:
  41. # - make base-server_lint
  42. - name: 构建镜像
  43. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  44. volumes:
  45. - name: docker
  46. path: /var/run/
  47. commands:
  48. - make base-server_image tag=${DRONE_TAG}
  49. - name: 镜像推送
  50. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  51. volumes:
  52. - name: docker
  53. path: /var/run/
  54. environment:
  55. DOCKER_HUB_HOST:
  56. from_secret: docker_hub_host
  57. DOCKER_HUB_USERNAME:
  58. from_secret: docker_hub_userame
  59. DOCKER_HUB_PASSWD:
  60. from_secret: docker_hub_passwd
  61. DOCKER_HUB_PROJECT:
  62. from_secret: docker_hub_project
  63. commands:
  64. - make base-server_image_push need_latest=FALSE tag=${DRONE_TAG} docker_hub_project=$DOCKER_HUB_PROJECT docker_hub_host=$DOCKER_HUB_HOST docker_hub_userame=$DOCKER_HUB_USERNAME docker_hub_passwd=$DOCKER_HUB_PASSWD
  65. ---
  66. kind: pipeline
  67. name: admin-server
  68. type: kubernetes
  69. platform:
  70. os: linux
  71. arch: amd64
  72. trigger:
  73. event:
  74. - tag
  75. volumes:
  76. - name: docker
  77. host:
  78. path: /var/run/
  79. steps:
  80. # - name: 代码检查
  81. # image: golangci/golangci-lint:v1.40.1
  82. # environment:
  83. # GO111MODULE: on
  84. # GOPROXY: https://goproxy.cn,direct
  85. # commands:
  86. # - make admin-server_lint
  87. - name: 构建镜像
  88. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  89. volumes:
  90. - name: docker
  91. path: /var/run/
  92. commands:
  93. - make admin-server_image tag=${DRONE_TAG}
  94. - name: 镜像推送
  95. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  96. volumes:
  97. - name: docker
  98. path: /var/run/
  99. environment:
  100. DOCKER_HUB_HOST:
  101. from_secret: docker_hub_host
  102. DOCKER_HUB_USERNAME:
  103. from_secret: docker_hub_userame
  104. DOCKER_HUB_PASSWD:
  105. from_secret: docker_hub_passwd
  106. DOCKER_HUB_PROJECT:
  107. from_secret: docker_hub_project
  108. commands:
  109. - make admin-server_image_push need_latest=FALSE tag=${DRONE_TAG} docker_hub_project=$DOCKER_HUB_PROJECT docker_hub_host=$DOCKER_HUB_HOST docker_hub_userame=$DOCKER_HUB_USERNAME docker_hub_passwd=$DOCKER_HUB_PASSWD
  110. ---
  111. kind: pipeline
  112. name: openai-server
  113. type: kubernetes
  114. platform:
  115. os: linux
  116. arch: amd64
  117. trigger:
  118. event:
  119. - tag
  120. volumes:
  121. - name: docker
  122. host:
  123. path: /var/run/
  124. steps:
  125. # - name: 代码检查
  126. # image: golangci/golangci-lint:v1.40.1
  127. # environment:
  128. # GO111MODULE: on
  129. # GOPROXY: https://goproxy.cn,direct
  130. # commands:
  131. # - make openai-server_lint
  132. - name: 构建镜像
  133. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  134. volumes:
  135. - name: docker
  136. path: /var/run/
  137. commands:
  138. - make openai-server_image tag=${DRONE_TAG}
  139. - name: 镜像推送
  140. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  141. volumes:
  142. - name: docker
  143. path: /var/run/
  144. environment:
  145. DOCKER_HUB_HOST:
  146. from_secret: docker_hub_host
  147. DOCKER_HUB_USERNAME:
  148. from_secret: docker_hub_userame
  149. DOCKER_HUB_PASSWD:
  150. from_secret: docker_hub_passwd
  151. DOCKER_HUB_PROJECT:
  152. from_secret: docker_hub_project
  153. commands:
  154. - make openai-server_image_push need_latest=FALSE tag=${DRONE_TAG} docker_hub_project=$DOCKER_HUB_PROJECT docker_hub_host=$DOCKER_HUB_HOST docker_hub_userame=$DOCKER_HUB_USERNAME docker_hub_passwd=$DOCKER_HUB_PASSWD
  155. ---
  156. kind: pipeline
  157. name: taskset/pipeline
  158. type: kubernetes
  159. platform:
  160. os: linux
  161. arch: amd64
  162. trigger:
  163. event:
  164. - tag
  165. volumes:
  166. - name: docker
  167. host:
  168. path: /var/run/
  169. steps:
  170. # - name: 代码检查
  171. # image: golangci/golangci-lint:v1.40.1
  172. # environment:
  173. # GO111MODULE: on
  174. # GOPROXY: https://goproxy.cn,direct
  175. # commands:
  176. # - make taskset_lint
  177. - name: 构建镜像
  178. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  179. volumes:
  180. - name: docker
  181. path: /var/run/
  182. commands:
  183. - make pipeline_image tag=${DRONE_TAG}
  184. - name: 镜像推送
  185. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  186. volumes:
  187. - name: docker
  188. path: /var/run/
  189. environment:
  190. DOCKER_HUB_HOST:
  191. from_secret: docker_hub_host
  192. DOCKER_HUB_USERNAME:
  193. from_secret: docker_hub_userame
  194. DOCKER_HUB_PASSWD:
  195. from_secret: docker_hub_passwd
  196. DOCKER_HUB_PROJECT:
  197. from_secret: docker_hub_project
  198. commands:
  199. - make pipeline_image_push need_latest=FALSE tag=${DRONE_TAG} docker_hub_project=$DOCKER_HUB_PROJECT docker_hub_host=$DOCKER_HUB_HOST docker_hub_userame=$DOCKER_HUB_USERNAME docker_hub_passwd=$DOCKER_HUB_PASSWD
  200. ---
  201. kind: pipeline
  202. name: taskset/vc-controller
  203. type: kubernetes
  204. platform:
  205. os: linux
  206. arch: amd64
  207. trigger:
  208. event:
  209. - tag
  210. volumes:
  211. - name: docker
  212. host:
  213. path: /var/run/
  214. steps:
  215. # - name: 代码检查
  216. # image: golangci/golangci-lint:v1.40.1
  217. # environment:
  218. # GO111MODULE: on
  219. # GOPROXY: https://goproxy.cn,direct
  220. # commands:
  221. # - make taskset_lint
  222. - name: 构建镜像
  223. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  224. volumes:
  225. - name: docker
  226. path: /var/run/
  227. commands:
  228. - make vc-controller_image tag=${DRONE_TAG}
  229. - name: 镜像推送
  230. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  231. volumes:
  232. - name: docker
  233. path: /var/run/
  234. environment:
  235. DOCKER_HUB_HOST:
  236. from_secret: docker_hub_host
  237. DOCKER_HUB_USERNAME:
  238. from_secret: docker_hub_userame
  239. DOCKER_HUB_PASSWD:
  240. from_secret: docker_hub_passwd
  241. DOCKER_HUB_PROJECT:
  242. from_secret: docker_hub_project
  243. commands:
  244. - make vc-controller_image_push need_latest=FALSE tag=${DRONE_TAG} docker_hub_project=$DOCKER_HUB_PROJECT docker_hub_host=$DOCKER_HUB_HOST docker_hub_userame=$DOCKER_HUB_USERNAME docker_hub_passwd=$DOCKER_HUB_PASSWD
  245. ---
  246. kind: pipeline
  247. name: taskset/scheduler
  248. type: kubernetes
  249. platform:
  250. os: linux
  251. arch: amd64
  252. trigger:
  253. event:
  254. - tag
  255. volumes:
  256. - name: docker
  257. host:
  258. path: /var/run/
  259. steps:
  260. # - name: 代码检查
  261. # image: golangci/golangci-lint:v1.40.1
  262. # environment:
  263. # GO111MODULE: on
  264. # GOPROXY: https://goproxy.cn,direct
  265. # commands:
  266. # - make taskset_lint
  267. - name: 构建镜像
  268. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  269. volumes:
  270. - name: docker
  271. path: /var/run/
  272. commands:
  273. - make scheduler_image tag=${DRONE_TAG}
  274. - name: 镜像推送
  275. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  276. volumes:
  277. - name: docker
  278. path: /var/run/
  279. environment:
  280. DOCKER_HUB_HOST:
  281. from_secret: docker_hub_host
  282. DOCKER_HUB_USERNAME:
  283. from_secret: docker_hub_userame
  284. DOCKER_HUB_PASSWD:
  285. from_secret: docker_hub_passwd
  286. DOCKER_HUB_PROJECT:
  287. from_secret: docker_hub_project
  288. commands:
  289. - make scheduler_image_push need_latest=FALSE tag=${DRONE_TAG} docker_hub_project=$DOCKER_HUB_PROJECT docker_hub_host=$DOCKER_HUB_HOST docker_hub_userame=$DOCKER_HUB_USERNAME docker_hub_passwd=$DOCKER_HUB_PASSWD
  290. ---
  291. kind: pipeline
  292. name: charts
  293. type: kubernetes
  294. platform:
  295. os: linux
  296. arch: amd64
  297. trigger:
  298. event:
  299. - tag
  300. volumes:
  301. - name: dockeretc
  302. host:
  303. path: /etc/docker
  304. steps:
  305. - name: Chart构建
  306. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/helm:3.5.4-make
  307. volumes:
  308. - name: dockeretc
  309. path: /etc/docker
  310. environment:
  311. HARBOR_HUB_HOST:
  312. from_secret: harbor_hub_host
  313. HARBOR_HUB_USERNAME:
  314. from_secret: harbor_hub_userame
  315. HARBOR_HUB_PASSWD:
  316. from_secret: harbor_hub_passwd
  317. HARBOR_HUB_CA_FILE:
  318. from_secret: harbor_hub_ca_file
  319. HARBOR_HUB_CERT_FILE:
  320. from_secret: harbor_hub_cert_file
  321. CHARTS_GIT_CLONE:
  322. from_secret: charts_git_clone
  323. CHARTS_GIT_RAW:
  324. from_secret: charts_git_raw
  325. CHARTS_GIT_USER_NAME:
  326. from_secret: charts_git_user_name
  327. CHARTS_GIT_USER_EMAIL:
  328. from_secret: charts_git_user_email
  329. HARBOR_HUB_PROJECT:
  330. from_secret: harbor_hub_project
  331. commands:
  332. - make charts drone_repo=${DRONE_REPO} tag=${DRONE_TAG} harbor_hub_project=$HARBOR_HUB_PROJECT harbor_hub_host=$HARBOR_HUB_HOST harbor_hub_userame=$HARBOR_HUB_USERNAME harbor_hub_passwd=$HARBOR_HUB_PASSWD harbor_hub_ca_file=$HARBOR_HUB_CA_FILE HARBOR_HUB_CERT_FILE=$HARBOR_HUB_CERT_FILE charts_git_clone=$CHARTS_GIT_CLONE charts_git_raw=$CHARTS_GIT_RAW charts_git_user_name=$CHARTS_GIT_USER_NAME charts_git_user_email=$CHARTS_GIT_USER_EMAIL
  333. ---
  334. kind: pipeline
  335. name: admin-portal
  336. type: kubernetes
  337. platform:
  338. os: linux
  339. arch: amd64
  340. trigger:
  341. event:
  342. - tag
  343. volumes:
  344. - name: docker
  345. host:
  346. path: /var/run/
  347. steps:
  348. - name: 构建镜像
  349. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  350. volumes:
  351. - name: docker
  352. path: /var/run/
  353. commands:
  354. - make admin-portal_image tag=${DRONE_TAG}
  355. - name: 镜像推送
  356. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  357. volumes:
  358. - name: docker
  359. path: /var/run/
  360. environment:
  361. DOCKER_HUB_HOST:
  362. from_secret: docker_hub_host
  363. DOCKER_HUB_USERNAME:
  364. from_secret: docker_hub_userame
  365. DOCKER_HUB_PASSWD:
  366. from_secret: docker_hub_passwd
  367. DOCKER_HUB_PROJECT:
  368. from_secret: docker_hub_project
  369. commands:
  370. - make admin-portal_image_push need_latest=FALSE tag=${DRONE_TAG} docker_hub_project=$DOCKER_HUB_PROJECT docker_hub_host=$DOCKER_HUB_HOST docker_hub_userame=$DOCKER_HUB_USERNAME docker_hub_passwd=$DOCKER_HUB_PASSWD
  371. ---
  372. kind: pipeline
  373. name: openai-portal
  374. type: kubernetes
  375. platform:
  376. os: linux
  377. arch: amd64
  378. trigger:
  379. event:
  380. - tag
  381. volumes:
  382. - name: docker
  383. host:
  384. path: /var/run/
  385. steps:
  386. - name: 构建镜像
  387. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  388. volumes:
  389. - name: docker
  390. path: /var/run/
  391. commands:
  392. - make openai-portal_image tag=${DRONE_TAG}
  393. - name: 镜像推送
  394. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  395. volumes:
  396. - name: docker
  397. path: /var/run/
  398. environment:
  399. DOCKER_HUB_HOST:
  400. from_secret: docker_hub_host
  401. DOCKER_HUB_USERNAME:
  402. from_secret: docker_hub_userame
  403. DOCKER_HUB_PASSWD:
  404. from_secret: docker_hub_passwd
  405. DOCKER_HUB_PROJECT:
  406. from_secret: docker_hub_project
  407. commands:
  408. - make openai-portal_image_push need_latest=FALSE tag=${DRONE_TAG} docker_hub_project=$DOCKER_HUB_PROJECT docker_hub_host=$DOCKER_HUB_HOST docker_hub_userame=$DOCKER_HUB_USERNAME docker_hub_passwd=$DOCKER_HUB_PASSWD
  409. ---
  410. kind: pipeline
  411. name: api-doc
  412. type: kubernetes
  413. platform:
  414. os: linux
  415. arch: amd64
  416. trigger:
  417. event:
  418. - tag
  419. volumes:
  420. - name: docker
  421. host:
  422. path: /var/run/
  423. steps:
  424. # - name: 代码检查
  425. # image: golangci/golangci-lint:v1.40.1
  426. # environment:
  427. # GO111MODULE: on
  428. # GOPROXY: https://goproxy.cn,direct
  429. # commands:
  430. # - make admin-server_lint
  431. - name: 构建镜像
  432. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  433. volumes:
  434. - name: docker
  435. path: /var/run/
  436. commands:
  437. - make api-doc_image tag=${DRONE_TAG}
  438. - name: 镜像推送
  439. image: swr.cn-south-1.myhuaweicloud.com/openioctopus/docker:20.10.6-make
  440. volumes:
  441. - name: docker
  442. path: /var/run/
  443. environment:
  444. DOCKER_HUB_HOST:
  445. from_secret: docker_hub_host
  446. DOCKER_HUB_USERNAME:
  447. from_secret: docker_hub_userame
  448. DOCKER_HUB_PASSWD:
  449. from_secret: docker_hub_passwd
  450. DOCKER_HUB_PROJECT:
  451. from_secret: docker_hub_project
  452. commands:
  453. - make api-doc_image_push need_latest=FALSE tag=${DRONE_TAG} docker_hub_project=$DOCKER_HUB_PROJECT docker_hub_host=$DOCKER_HUB_HOST docker_hub_userame=$DOCKER_HUB_USERNAME docker_hub_passwd=$DOCKER_HUB_PASSWD

简介

面向多计算场景的一站式融合计算平台

https://octopus.openi.org.cn

CSS Go SVG Vue Markdown other