-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
40 lines (35 loc) · 1.17 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
image:
name: docker/compose:latest
entrypoint: ["/bin/sh", "-c"]
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
FLASK_IMAGE: registry.gitlab.com/fodark/bdt-project/bdt-project_flask:latest
REACT_IMAGE: registry.gitlab.com/fodark/bdt-project/bdt-project_react:latest
NEO_IMAGE: registry.gitlab.com/fodark/bdt-project/bdt-project_neo:latest
LTC_IMAGE: registry.gitlab.com/fodark/bdt-project/bdt-project_ltc:latest
STC_IMAGE: registry.gitlab.com/fodark/bdt-project/bdt-project_stc:latest
services:
- docker:dind
stages:
- build_images
- tag_images
- push_images
before_script:
- docker version
- docker-compose version
- docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
build:
stage: build_images
script:
- docker-compose -f docker-compose-build.yml build
- docker tag bdt-project_flask $FLASK_IMAGE
- docker tag bdt-project_react $REACT_IMAGE
- docker tag bdt-project_ltc $LTC_IMAGE
- docker tag bdt-project_stc $STC_IMAGE
- docker tag bdt-project_neo $NEO_IMAGE
- docker push $FLASK_IMAGE
- docker push $REACT_IMAGE
- docker push $LTC_IMAGE
- docker push $STC_IMAGE
- docker push $NEO_IMAGE