Revize bba6e93e
Přidáno uživatelem Jan Pašek před asi 4 roky(ů)
.gitlab-ci.yml | ||
---|---|---|
1 | 1 |
stages: |
2 |
- build |
|
3 | 2 |
- test |
4 | 3 |
- deploy |
5 | 4 |
|
6 |
build_job: |
|
7 |
stage: build |
|
8 |
script: |
|
9 |
- mkdir build |
|
10 |
- echo "OK" > build/build.txt |
|
11 |
|
|
12 | 5 |
test_job: |
13 | 6 |
stage: test |
14 | 7 |
variables: |
15 | 8 |
FLASK_HOST: "78.128.250.101" |
16 |
only: |
|
17 |
- 8219_CICD_Test |
|
18 | 9 |
script: |
19 | 10 |
- pip3 install -r requirements.txt && pytest |
20 | 11 |
|
21 | 12 |
deploy_job: |
22 | 13 |
stage: deploy |
23 | 14 |
only: |
24 |
- 8219_CICD_Test
|
|
15 |
-master
|
|
25 | 16 |
script: |
26 | 17 |
- docker-compose up -d --build |
27 | 18 |
|
Také k dispozici: Unified diff
#8219 Update .gitlab-ci.yml
- removed build step
- setup deploy on master only
- enable tests everywhere