-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
42 lines (38 loc) · 911 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
stages:
- build
- test
Build Django App:
stage: build
tags:
- docker
variables:
IMAGE_TAG: skyride/nginx-stream-kit-django:$CI_COMMIT_SHA
script:
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
Build Nginx:
stage: build
tags:
- docker
variables:
IMAGE_TAG: skyride/nginx-stream-kit-nginx:$CI_COMMIT_SHA
script:
- docker build -t $IMAGE_TAG nginx/
- docker push $IMAGE_TAG
Build RTMP Ingest:
stage: build
tags:
- docker
variables:
IMAGE_TAG: skyride/nginx-stream-kit-ingest:$CI_COMMIT_SHA
script:
- docker build -t $IMAGE_TAG nginx-rtmp/
- docker push $IMAGE_TAG
Run Tests:
stage: test
tags:
- docker
script:
- docker-compose -f docker-compose.ci.yml pull
- docker-compose -f docker-compose.ci.yml run --rm web ./manage.py migrate
- docker-compose -f docker-compose.ci.yml run --rm web ./manage.py test