-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
58 lines (53 loc) · 1.49 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
54
55
56
57
58
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
stages:
- build
.docker:
image:
name: docker:19.03-dind
services:
- docker:dind
variables:
DOCKER_TLS_CERTDIR: ""
before_script:
- apk add --no-cache py-pip
- pip install docker-compose==1.23.0
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build:
stage: build
tags:
- cluster
extends: .docker
script:
- echo "Building the app (develop)"
- docker-compose -f docker-compose-acdh-develop.yml build
- docker push docker.gitlab.gwdg.de/sshoc/sshoc-marketplace-backend/api:latest
- docker push docker.gitlab.gwdg.de/sshoc/sshoc-marketplace-backend/solr:latest
only:
- develop
build-prod:
stage: build
tags:
- cluster
extends: .docker
script:
- echo "Building the app (prod)"
- docker-compose -f docker-compose-acdh-prod.yml build
- docker push docker.gitlab.gwdg.de/sshoc/sshoc-marketplace-backend/api-prod:latest
- docker push docker.gitlab.gwdg.de/sshoc/sshoc-marketplace-backend/solr-prod:latest
only:
- master
build-stage:
stage: build
tags:
- cluster
extends: .docker
script:
- echo "Building the app (stage)"
- docker-compose -f docker-compose-acdh-stage.yml build
- docker push docker.gitlab.gwdg.de/sshoc/sshoc-marketplace-backend/api-stage:latest
- docker push docker.gitlab.gwdg.de/sshoc/sshoc-marketplace-backend/solr-stage:latest
only:
- develop