-
Notifications
You must be signed in to change notification settings - Fork 64
/
pipeline.yml
92 lines (92 loc) · 3.16 KB
/
pipeline.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
version: "1.1"
name: ""
"on":
push:
branches:
- master
- release/*
tags:
- v*
cron: 0 0 10,13,16,19,23 * * ?
stages:
- stage:
- git-checkout:
alias: erda-ui
description: 代码仓库克隆
version: "1.0"
params:
branch: ((gittar.branch))
depth: 1
uri: https://erda.cloud/erda/dop/erda-project/erda-ui
- git-checkout:
alias: erda-ui-enterprise
description: 代码仓库克隆
version: "1.0"
params:
branch: ((gittar.branch))
depth: 1
uri: https://erda.cloud/erda/dop/erda-project/erda-ui-enterprise
- stage:
- extract-repo-version:
alias: ui-version
description: 从 git 代码仓库中解析提交信息,生成仓库版本
params:
git_dir: ${{ dirs.erda-ui }}
- extract-repo-version:
alias: ui-enterprise-version
description: 从 git 代码仓库中解析提交信息,生成仓库版本
params:
git_dir: ${{ dirs.erda-ui-enterprise }}
- stage:
- dockerfile:
alias: build-erda-ui-image
description: 针对自定义 dockerfile 打包,产出可运行镜像
version: "1.0"
params:
build_context:
erda-ui-enterprise: ${{ dirs.erda-ui-enterprise }}
image:
name: ui
tag: ${{ outputs.ui-version.image_tag }}
path: ${{ dirs.erda-ui }}/Dockerfile
registry:
password: ${{ configs.docker_registry_password }}
url: ${{ configs.docker_registry }}
username: ${{ configs.docker_registry_username }}
workdir: ${{ dirs.erda-ui }}
resources:
cpu: 0.5
mem: 2048
- dockerfile:
alias: build-erda-ui-enterprise-image
description: 针对自定义 dockerfile 打包,产出可运行镜像
version: "1.0"
params:
image:
name: ui-enterprise
tag: ${{ outputs.ui-enterprise-version.image_tag }}
path: ${{ dirs.erda-ui-enterprise }}/Dockerfile
registry:
password: ${{ configs.docker_registry_password }}
url: ${{ configs.docker_registry }}
username: ${{ configs.docker_registry_username }}
workdir: ${{ dirs.erda-ui-enterprise }}
resources:
cpu: 0.5
mem: 2048
- stage:
- release:
alias: release-ui
description: 用于打包完成时,向dicehub 提交完整可部署的dice.yml。用户若没在pipeline.yml里定义该action,CI会自动在pipeline.yml里插入该action
version: "1.0"
params:
check_diceyml: false
cross_cluster: "true"
dice_yml: ${{ dirs.erda-ui }}/erda.yml
image:
enterprise-ui: ${{ outputs.build-erda-ui-enterprise-image.image }}
ui: ${{ outputs.build-erda-ui-image.image }}
tag_version: ${{ outputs.ui-version.version }}
resources:
cpu: 0.5
mem: 512