-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
32 lines (25 loc) · 901 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
image: docker:latest
variables:
DOCKER_DRIVER: overlay
services:
- docker:dind
before_script:
- apk add --no-cache docker-compose
build:
stage: build
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE/hw3_search:latest || true
- docker tag $CI_REGISTRY_IMAGE/hw3_search:latest hw3_search:latest || true
- docker-compose build
- docker tag hw3_search:latest $CI_REGISTRY_IMAGE/hw3_search:latest
- docker push $CI_REGISTRY_IMAGE/hw3_search:latest
integration_tests:
stage: test
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE/hw3_search:latest
- docker tag $CI_REGISTRY_IMAGE/hw3_search:latest hw3_search:latest
- docker-compose up -d search
- docker-compose run integration_tests
- docker-compose down