-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpipeline.yml
116 lines (116 loc) · 4.22 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: "1.1"
name: ""
"on":
push:
branches:
- master
- release/*
tags:
- v*
stages:
- stage:
- git-checkout:
alias: erda-analyzer
description: 代码仓库克隆
params:
depth: 1
- stage:
- extract-repo-version:
alias: extract-repo-version
description: 从 git 代码仓库中解析提交信息,生成仓库版本
params:
git_dir: ${{ dirs.erda-analyzer }}
- stage:
- dockerfile:
alias: build-metrics
description: 针对自定义 dockerfile 打包,产出可运行镜像
version: "1.0"
params:
build_args:
APP: analyzer-metrics
image:
name: erda-analyzer-metrics
tag: ${{ outputs.extract-repo-version.image_tag }}
path: Dockerfile
registry:
password: ${{ configs.docker_registry_password }}
url: ${{ configs.docker_registry }}
username: ${{ configs.docker_registry_username }}
workdir: ${{ dirs.erda-analyzer }}
resources:
cpu: 2
mem: 2048
- dockerfile:
alias: build-alert
description: 针对自定义 dockerfile 打包,产出可运行镜像
version: "1.0"
params:
build_args:
APP: analyzer-alert
image:
name: erda-analyzer-alert
tag: ${{ outputs.extract-repo-version.image_tag }}
path: Dockerfile
registry:
password: ${{ configs.docker_registry_password }}
url: ${{ configs.docker_registry }}
username: ${{ configs.docker_registry_username }}
workdir: ${{ dirs.erda-analyzer }}
resources:
cpu: 2
mem: 2048
- dockerfile:
alias: build-error-insight
description: 针对自定义 dockerfile 打包,产出可运行镜像
version: "1.0"
params:
build_args:
APP: analyzer-error-insight
image:
name: erda-analyzer-error-insight
tag: ${{ outputs.extract-repo-version.image_tag }}
path: Dockerfile
registry:
password: ${{ configs.docker_registry_password }}
url: ${{ configs.docker_registry }}
username: ${{ configs.docker_registry_username }}
workdir: ${{ dirs.erda-analyzer }}
resources:
cpu: 2
mem: 2048
- dockerfile:
alias: build-tracing
description: 针对自定义 dockerfile 打包,产出可运行镜像
version: "1.0"
params:
build_args:
APP: analyzer-tracing
image:
name: erda-analyzer-tracing
tag: ${{ outputs.extract-repo-version.image_tag }}
path: Dockerfile
registry:
password: ${{ configs.docker_registry_password }}
url: ${{ configs.docker_registry }}
username: ${{ configs.docker_registry_username }}
workdir: ${{ dirs.erda-analyzer }}
resources:
cpu: 2
mem: 2048
- stage:
- release:
alias: release-erda-analyzer
description: 用于打包完成时,向dicehub 提交完整可部署的dice.yml。用户若没在pipeline.yml里定义该action,CI会自动在pipeline.yml里插入该action
params:
check_diceyml: false
dice_yml: ${erda-analyzer}/erda.yml
image:
analyzer-alert: ${{ outputs.build-alert.image }}
analyzer-alert-task: ${{ outputs.build-alert.image }}
analyzer-error-insight: ${{ outputs.build-error-insight.image }}
analyzer-error-insight-task: ${{ outputs.build-error-insight.image }}
analyzer-metrics: ${{ outputs.build-metrics.image }}
analyzer-metrics-task: ${{ outputs.build-metrics.image }}
analyzer-tracing: ${{ outputs.build-tracing.image }}
analyzer-tracing-task: ${{ outputs.build-tracing.image }}
tag_version: ${{ outputs.extract-repo-version.version }}