.gitlab-ci.yml 499 Bytes
Newer Older
1
image: docker:latest
2

3
4
5
services:
    - docker:dind

6
7
8
9
10
before_script:
    - apk add make
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.hzdr.de


11
12
test_build:
    stage: test
13
14
    only:
        - develop
15
16
17
    tags:
        - dind
    script:
18
19
20
        - make build CONTAINER_TAG=develop
        - make push CONTAINER_TAG=develop

21
22
23
24
25

build_and_push:
    stage: deploy
    only:
        - master
26
        - schedules
27
28
29
    tags:
        - dind
    script:
30
        - make build
31
32
        - make push