.gitlab-ci.yml 367 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
Siedschlag, Lennart's avatar
Siedschlag, Lennart committed
7

8

David Engelhardt's avatar
David Engelhardt committed
9
10
11
12
13
14
15

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

build:
  stage: build
  script:
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
16
17
    - docker build -t $IMAGE_TAG frontend/
    - docker push $IMAGE_TAG
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
18
    - docker build -t $IMAGE_TAG-mm middleman/
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
19
    - docker push $IMAGE_TAG-mm
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
20

David Engelhardt's avatar
David Engelhardt committed
21