4
4
---
5
5
6
6
generic_job_example :
7
- name : Auth # name for the UI
8
- slug : auth-service # used for job dependencies references
9
-
7
+ name : Auth # name for the UI
8
+ slug : auth-service # used for job dependencies references
9
+
10
10
# optional, name of the Dockerfile to build. If presented, job will build image
11
11
dockerfile : Dockerfile
12
- # optional, name of default image to export, as a result of build.
12
+ # optional, name of default image to export, as a result of build.
13
13
# Could be omitted if docker_export is presented
14
14
# if dockerfile is missing, this field is considered as a dependency, all jobs will be searched for a one exporting this image name
15
15
# image will be loaded into local docker to use for running or just use as a cache
16
16
image_name : covergo/auth
17
17
# optional. Array of parameters to pass to docker image during run.
18
- image_run_args :
18
+ image_run_args :
19
19
- " arg1"
20
20
- " arg 2"
21
-
21
+
22
22
# optional, docker cache configuration. Can be a map or an array
23
23
cache_from :
24
-
25
- # Map view:
24
+
25
+ # Map view:
26
26
# optional, type of docker cache to use. Possible values: "gha" and "registry"
27
- # gha will use GitHub Cache API via docker gha cache exporter. Experimental, fast, and limited to 5GB per repo
27
+ # gha will use GitHub Cache API via docker gha cache exporter. Experimental, fast, and limited to 5GB per repo
28
28
# registry will create a special "cache" images containing all layers and used only for caching, branch-specific, and store it in ghcr.io
29
29
type : registry # [gha,registry]
30
30
# optional, dependencies on external docker images, produced by other jobs,
31
31
# used as an additional cache during build process.
32
32
# Can be used only for "registry" cache type
33
33
from_images :
34
- # non-empty list containing names of the images. Should match "image_name" field of some sections in the same configuration file
34
+ # non-empty list containing names of the images. Should match "image_name" field of some sections in the same configuration file
35
35
# order matters, as cache will be used in the same order as declaration
36
36
# cache order should reflect the dependencies from Dockerfile targets
37
37
# base targets should come first
@@ -42,14 +42,14 @@ generic_job_example:
42
42
# - covergo/auth
43
43
44
44
# optional, if presented means this job will run docker image as stand-alone or inside compose
45
- # represents the path to get some artifacts from the image (compose service) as a result of the run
46
- # artifacts will be treated based on other factor, e.g. it could be test results in some format, nuget package, or smth else
47
- # requires image_name to locate the target image
45
+ # represents the path to get some artifacts from the image (compose service) as a result of the run
46
+ # artifacts will be treated based on other factor, e.g. it could be test results in some format, nuget package, or smth else
47
+ # requires image_name to locate the target image
48
48
container_result_path : app/TestResults
49
49
50
50
51
51
# option section for running compose
52
- # if presented, means job will run compose instead of docker
52
+ # if presented, means job will run compose instead of docker
53
53
compose_file : docker-compose.yml
54
54
# service name in compose file to treat as SUT
55
55
# results will be taken from this image, based on 'container_result_path' setting
@@ -61,7 +61,7 @@ generic_job_example:
61
61
# # end of compose section
62
62
63
63
# Deprecated in favor of services
64
- # service:
64
+ # service:
65
65
66
66
# Should Only build and export docker images
67
67
services :
@@ -72,7 +72,7 @@ services:
72
72
image_name : covergo/auth
73
73
generate_docker_meta : true
74
74
output_docker_digest : true
75
- build_args :
75
+ build_args :
76
76
- NOW="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
77
77
- name : Auth Predeployment
78
78
slug : auth-predeployment
@@ -84,8 +84,8 @@ services:
84
84
cache_from :
85
85
- covergo/auth
86
86
87
- # Runs an existing image, can build if needed
88
- unit_test : # docker-build-and-job
87
+ # Runs an existing image, can build if needed
88
+ unit_test : # docker-build-and-job
89
89
- name : Unit tests
90
90
slug : auth-test-unit
91
91
container_result_path : app/TestResults
@@ -100,10 +100,10 @@ unit_test: #docker-build-and-job
100
100
- covergo/auth
101
101
upload_path : |
102
102
bce
103
- !fge
103
+ !fge
104
104
!hep/**/.tmp
105
105
# Runs existing images in compose, can build if needed
106
- integration_test : # array of docker-build-and-job
106
+ integration_test : # array of docker-build-and-job
107
107
- name : Integration tests
108
108
slug : integration-tests
109
109
container_result_path : app/TestResults
@@ -134,7 +134,7 @@ integration_test: #array of docker-build-and-job
134
134
- covergo/auth
135
135
- covergo/auth-test-unit
136
136
- covergo/cases-api-test-integration
137
-
137
+
138
138
- name : Integration API tests
139
139
slug : api-test-integration
140
140
runner : ubuntu-latest
@@ -152,14 +152,14 @@ integration_test: #array of docker-build-and-job
152
152
153
153
154
154
# Only build and export docker images
155
- additional_images : # array of docker-build-and-job
155
+ additional_images : # array of docker-build-and-job
156
156
- name : Mongo db for Auth
157
157
slug : auth-mongo
158
158
dockerfile : Mongo.Dockerfile
159
159
image_name : covergo/auth-mongo
160
160
161
161
162
- # Runs an exising image or build it, extract nuget package and publishes it
162
+ # Runs an exising image or build it, extract nuget package and publishes it
163
163
nuget : # docker-build-and-job with special treatment of artifact
164
164
- name : Auth client nuget
165
165
slug : auth-nuget
@@ -256,6 +256,7 @@ scan_code_net:
256
256
name : Sonar Code
257
257
slug : scan_code_net
258
258
# optional
259
+ runner : ubuntu-latest-4-cores
259
260
cache_from :
260
261
- covergo/auth
261
262
- covergo/auth-test-unit
@@ -282,7 +283,7 @@ deploy_tenants:
282
283
url : CoverGo/Documentation
283
284
branch : master
284
285
token : ${{ secrets.CR_PAT_FULL }}
285
-
286
+
286
287
# Legacy way
287
288
service : covergo-auth
288
289
image : registry-intl.cn-hongkong.aliyuncs.com/covergo/auth:${{ needs.version.outputs.app_version }}
0 commit comments