-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (36 loc) · 950 Bytes
/
.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
stages:
- test
- build
- deploy
unittest:
stage: test
script:
- echo $(cat /proc/sys/kernel/random/uuid) > project_name
- docker-compose -p $(cat project_name) up --exit-code-from=unittest --build unittest
after_script:
- docker-compose -p $(cat project_name) down
coverage: /TOTAL.*\s+(\d+\%)/
build:
stage: build
only:
- main
before_script:
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" zoo.smok.co
script:
- DOCKERIT_NO_BRANCH=1 docker-it conqueror zoo.smok.co/yandex-conqueror/conqueror . --target runtime
artifacts:
paths:
- "conqueror.digest"
deploy:
stage: deploy
only:
- main
variables:
DOCKER_HOST: "192.168.224.201:2375"
before_script:
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" zoo.smok.co
script:
- docker service update --with-registry-auth --image `cat conqueror.digest` conqueror
dependencies:
- build
when: manual