.gitlab-ci.yml 510 Bytes
Newer Older
David Engelhardt's avatar
David Engelhardt committed
1
2
3
4
5
6
services:
  - docker:dind

variables:
  DOCKER_HOST: tcp://docker:2375
  DOCKER_DRIVER: overlay2
7
8
9
10
11
12
  host: $CAL_DB_HOST
  port: $CAL_DB_PORT
  username: $CAL_DB_USER
  password: $CAL_DB_PASS
  databaseName: $CAL_DB_NAME

David Engelhardt's avatar
David Engelhardt committed
13
14
15
16
17
18
19

before_script:
  - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY

build:
  stage: build
  script:
20
    - echo $D_CAL_USER
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
21
22
    - docker build -t $IMAGE_TAG frontend/
    - docker push $IMAGE_TAG
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
23
    - docker build -t $IMAGE_TAG-mm middleman/
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
24
    - docker push $IMAGE_TAG-mm
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
25

David Engelhardt's avatar
David Engelhardt committed
26