forked from duolabmeng6/qtAutoUpdateApp
-
Notifications
You must be signed in to change notification settings - Fork 1
165 lines (164 loc) · 4.03 KB
/
ci.yaml
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name: 持续集成
on:
push:
branches:
- 'feature/**'
jobs:
Auto-Integration:
name: Auto-Integration
runs-on: ubuntu-latest
steps:
- name: Pull Code
uses: actions/checkout@master
continue-on-error: true
- name: Auto Create PR
if: ${{ github.event.before != '0000000000000000000000000000000000000000' }}
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.TOKEN_GITHUB }}
delete-branch: true
base: main
branch: ${{ github.ref }}
Unit-Test:
needs: Auto-Integration
name: Unit-Test
runs-on: ubuntu-latest
if: ${{ github.event.before != '0000000000000000000000000000000000000000' }}
steps:
- name: 开始扫描
run: |
echo Unit-Test
- name: 完成扫描
run: |
echo upload evidence
Sonar-Qube-Scan:
needs: Auto-Integration
name: Sonar-Qube-Scan
runs-on: ubuntu-latest
if: ${{ github.event.before != '0000000000000000000000000000000000000000' }}
steps:
- name: 开始扫描
run: |
echo SonarQube Scan
- name: 完成扫描
run: |
echo upload evidence
Build-Package:
needs: Auto-Integration
name: Build-Package
runs-on: ubuntu-latest
if: ${{ github.event.before != '0000000000000000000000000000000000000000' }}
steps:
- name: 开始构建包
run: |
echo mvn clean package
- name: 开始上传制品
run: |
echo upload package
Build-Image:
needs: Build-Package
name: Build-Image
runs-on: ubuntu-latest
steps:
- name: 开始构建镜像
run: |
echo docker build .
- name: 开始上传制品
run: |
echo upload image
Build-Chart:
needs: Build-Image
name: Build-Chart
runs-on: ubuntu-latest
steps:
- name: 开始构建Chart
run: |
echo helm build .
- name: 开始上传制品
run: |
echo upload chart
Deploy-Validate:
needs: [Build-Package,Build-Image,Build-Chart]
name: Deploy-Validate
runs-on: ubuntu-latest
steps:
- name: 开始部署
run: |
echo helm build .
- name: 部署完成
run: |
echo upload chart
SAST-SCAN:
needs: Deploy-Validate
name: SAST-Scan
runs-on: ubuntu-latest
steps:
- name: SAST-Scan Start
run: |
echo SAST-SCAN
- name: SAST-Scan Completed
run: |
echo SAST-SCAN
DAST-SCAN:
needs: Deploy-Validate
name: DAST-Scan
runs-on: ubuntu-latest
steps:
- name: DAST-Scan Start
run: |
echo DAST-SCAN
- name: DAST-Scan Completed
run: |
echo DAST-SCAN
CONT-SCAN:
needs: Deploy-Validate
name: CONT-Scan
runs-on: ubuntu-latest
steps:
- name: CONT-Scan Start
run: |
echo CONT-SCAN
- name: CONT-Scan Completed
run: |
echo CONT-SCAN
FOSS-SCAN:
needs: Deploy-Validate
name: FOSS-Scan
runs-on: ubuntu-latest
steps:
- name: FOSS-Scan Start
run: |
echo FOSS-SCAN
- name: FOSS-Scan Completed
run: |
echo FOSS-SCAN
Regression-Test:
needs: Deploy-Validate
name: Regression-Test
runs-on: ubuntu-latest
steps:
- name: Regression-Test Start
run: |
echo Regression-Test
- name: Regression-Test Completed
run: |
echo Regression-Test
Performance-Test:
needs: Deploy-Validate
name: Performance-Test
runs-on: ubuntu-latest
steps:
- name: Performance-Test Start
run: |
echo Performance-Test
- name: Performance-Test Completed
run: |
echo Performance-Test
Notification-Email:
needs: [Regression-Test,Performance-Test,FOSS-SCAN,CONT-SCAN,DAST-SCAN,SAST-SCAN]
name: Notification-Email
runs-on: ubuntu-latest
steps:
- name: Notification-Email
run: |
echo Send an email.