-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
92 lines (83 loc) · 2.23 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
stages:
- trigger
- deploy-other-group
# deploy apps developed by Dadura & Wlodarczyk
trigger-patient-data:
stage: trigger
trigger:
include: Projekt/PatientsData/.gitlab-ci.yml
strategy: depend
rules:
- changes:
- Projekt/PatientsData/**/*
- Miniprojekty/Kubernetes/PatientsData/**/*
trigger-doctors-app:
stage: trigger
trigger:
include: Projekt/DoctorsApp/.gitlab-ci.yml
strategy: depend
rules:
- changes:
- Projekt/DoctorsApp/**/*
- Miniprojekty/Kubernetes/DoctorsApp/**/*
trigger-patient-web:
stage: trigger
trigger:
include: Projekt/PatientsWebApp/.gitlab-ci.yml
strategy: depend
rules:
- changes:
- Projekt/PatientsWebApp/**/*
- Miniprojekty/Kubernetes/PatientsWebApp/**/*
# deploy apps developed by Zdulski & Walusiak
deploy-dd 1:3:
stage: deploy-other-group
tags:
- deployment
image:
name: bitnami/kubectl
entrypoint: [ "" ]
before_script:
- export KUBECONFIG=$(mktemp)
- cat $K8S_CONFIG | base64 -d > ${KUBECONFIG}
script:
- kubectl apply -f Miniprojekty/Kubernetes/DoctorsData
- kubectl rollout restart statefulset pro-dd-statefulset
rules:
- if: $CI_COMMIT_BRANCH == "master"
- changes:
- Miniprojekty/Kubernetes/DoctorsData/**/*
deploy-pa 2:3:
stage: deploy-other-group
tags:
- deployment
image:
name: bitnami/kubectl
entrypoint: [ "" ]
before_script:
- export KUBECONFIG=$(mktemp)
- cat $K8S_CONFIG | base64 -d > ${KUBECONFIG}
script:
- kubectl apply -f Miniprojekty/Kubernetes/PatientsApp
- kubectl rollout restart deployment pro-pa-deployment
rules:
- if: $CI_COMMIT_BRANCH == "master"
- changes:
- Miniprojekty/Kubernetes/PatientsApp/**/*
deploy-dw 3:3:
stage: deploy-other-group
tags:
- deployment
image:
name: bitnami/kubectl
entrypoint: [ "" ]
before_script:
- export KUBECONFIG=$(mktemp)
- cat $K8S_CONFIG | base64 -d > ${KUBECONFIG}
script:
- kubectl apply -f Miniprojekty/Kubernetes/DoctorsWebApp
- kubectl rollout restart deployment pro-dw-deployment
rules:
- if: $CI_COMMIT_BRANCH == "master"
- changes:
- Miniprojekty/Kubernetes/DoctorsWebApp/**/*