.gitlab-ci.yml 815 Bytes
Newer Older
1
2
3
4
5
image: docker

stages:
  - build

Vicente Mataix Ferrándiz's avatar
Update    
Vicente Mataix Ferrándiz committed
6
build_docker:
7
8
    stage: build
    retry: 2
Vicente Mataix Ferrándiz's avatar
Vicente Mataix Ferrándiz committed
9
10
    tags:
        - linux
11
12
13
    only:
        refs:
            - master
14
    script:
Vicente Mataix Ferrándiz's avatar
Revert    
Vicente Mataix Ferrándiz committed
15
16
17
18
        - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
        - docker build -f docker/Dockerfile -t $CI_REGISTRY/$CI_PROJECT_PATH:latest .
        - docker container prune
        - docker push $CI_REGISTRY/$CI_PROJECT_PATH:latest
Vicente Mataix Ferrándiz's avatar
Vicente Mataix Ferrándiz committed
19
20
21
22
23
24

build_docker_full:
    stage: build
    retry: 2
    tags:
        - linux
25
26
27
    only:
        refs:
            - master
Vicente Mataix Ferrándiz's avatar
Vicente Mataix Ferrándiz committed
28
29
30
31
32
    script:
        - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
        - docker build -f docker/Dockerfile_full -t $CI_REGISTRY/$CI_PROJECT_PATH:full .
        - docker container prune
        - docker push $CI_REGISTRY/$CI_PROJECT_PATH:full