-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
53 lines (49 loc) · 1.16 KB
/
.gitlab-ci.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
image: python
services:
- gcr.io/diamond-privreg/lims/ipsyb-tomogram:v0.2.2
stages:
- test
- build
install-job:
stage: test
tags:
- argus
script:
- pip install .[dev]
integration-test-job:
stage: test
tags:
- argus
before_script:
- pip install .[dev]
script:
- pytest tests -W ignore::DeprecationWarning
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: cov.xml
build-image:
stage: build
tags:
- docker-image
image:
name: gcr.io/diamond-privreg/container-tools/kaniko-executor:v1.9.1-debug
entrypoint: [""]
only:
- tags
variables:
IMAGE_NAME: gcr.io/diamond-pubreg/em/pato-backend:$CI_COMMIT_TAG-$CI_COMMIT_SHORT_SHA
script:
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile Dockerfile --destination $IMAGE_NAME
sync-deploy-versions:
stage: build
tags:
- docker-image
image:
name: alpine/curl
only:
- tags
script:
- curl --request POST "https://${CI_SERVER_HOST}/api/v4/projects/6068/trigger/pipeline?token=${CI_PIPELINE_TRIGGER}&ref=${CI_DEFAULT_BRANCH}"