Projekt

Obecné

Profil

Stáhnout (439 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
stages:
2
   - build
3
   - test
4
   - deploy
5

    
6
build_job:
7
    stage: build
8
    script: 
9
        - mkdir build
10
        - echo "OK" > build/build.txt
11

    
12
test_job:
13
    stage: test
14
    variables:
15
        FLASK_HOST: "78.128.250.101"
16
    only:
17
        - 8219_CICD_Test
18
    script: 
19
        - pip3 install -r requirements.txt && pytest
20

    
21
deploy_job:
22
    stage: deploy
23
    only:
24
        - 8219_CICD_Test
25
    script: 
26
        - docker-compose up --build
27

    
(2-2/7)