Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 8b6777ff

Přidáno uživatelem Jakub Vašta před asi 4 roky(ů)

The final version of this file unless our server possibilities change

Zobrazit rozdíly:

.gitlab-ci.yml
1
variables:
2
    IMAGE_NAME: zcu-campus-life-app:$CI_COMMIT_REF_NAME
1
# variables:
2
#     IMAGE_NAME: zcu-campus-life-app:$CI_COMMIT_REF_NAME
3 3

  
4 4
stages:
5 5
    - test
6 6
    - build
7 7
    - deploy
8
    
8

  
9
# Now the runner is on the same server as production environment - which is not good - so ssh is not needed    
9 10
# before_script:
10 11
#     - apt-get update -qq
11 12
#     - apt-get install -qq git
......
30 31
    tags:
31 32
        - build
32 33
    script:
33
        # - docker login -u $USER p $PASSWORD gitlab.kiv.zcu.cz:5000
34
        # Todo propagate image name into docker-compose.yml
34
        # Test whether container can be build or not
35 35
        - docker-compose build
36
        # - docker-compose push $IMAGE_NAME
36
        # We could also push docker image to some registry or docker hub
37 37
        
38 38
deploy_prod:
39 39
    stage: deploy
......
48 48
        - cd ~
49 49
        - git clone https://gitlab.kiv.zcu.cz/aswi/aswi-2020/aswi2020sebela.git
50 50
        - cd aswi2020sebela
51
        - ./buld.sh
51
        - ./build.sh
52 52
    # only:
53 53
    #     - master
54 54
    when: manual

Také k dispozici: Unified diff