.gitlab-ci.yml 420 Bytes
Newer Older
David Engelhardt's avatar
David Engelhardt committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
services:
  - docker:dind

variables:
  DOCKER_HOST: tcp://docker:2375
  DOCKER_DRIVER: overlay2
  IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG

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
15
16
    - docker build -t $IMAGE_TAG frontend/
    - docker push $IMAGE_TAG
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
17
    - docker build -t $IMAGE_TAG-mm -f middleman/
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
18
    - docker push $IMAGE_TAG-mm
Mauritz, Falk Marius's avatar
möb    
Mauritz, Falk Marius committed
19

David Engelhardt's avatar
David Engelhardt committed
20