-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbitbucket-pipelines.yml
153 lines (151 loc) · 4.63 KB
/
bitbucket-pipelines.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
image: atlassian/default-image:2.08
definitions:
steps:
- step: &compile
name: Compile TypeScript
caches:
- node
services:
- docker
script:
- npm run docker-build-watcher
- npm run lint
- step: &security-integration
name: Security integration
caches:
- node
services:
- docker
script:
- npm run docker-build-security-prod
- npm run security-integration
- step: &mailer-integration
name: Mailer integration
caches:
- node
services:
- docker
script:
- npm run docker-build-mailer-prod
- npm run mailer-integration
- step: ¬ifications-integration
name: Notifications integration
caches:
- node
services:
- docker
script:
- npm run docker-build-notifications-prod
- npm run notifications-integration
- step: &scheduler-integration
name: Scheduler
caches:
- node
services:
- docker
script:
- npm run docker-build-scheduler-prod
- step: &gateway-integration
name: Gateway integration
caches:
- node
services:
- docker
script:
- npm run docker-build-gateway-prod
- npm run docker-build-security-prod
- npm run gateway-integration
- step: &pdf-integration
name: Pdf integration
caches:
- node
services:
- docker
script:
- npm run docker-build-pdf-prod
- npm run pdf-integration
- step: &deploy-docs
name: Prepare and push API Docs to GitHub
script:
- make install
- npm run build
- make npm-install-in-all-build-services
- node ./ci-scripts/generate-api-docs.js
- bash ./ci-scripts/api-docs-to-github.sh
services:
- docker
- step: &deploy-docusaurus-to-github
name: Prepare and push Docusaurus Docs to GitHub
script:
- bash ./ci-scripts/docusaurus-to-github.sh
services:
- docker
pipelines:
default:
- step: *compile
- parallel:
- step: *security-integration
- step: *mailer-integration
- step: *notifications-integration
- step: *scheduler-integration
- step: *gateway-integration
- step: *pdf-integration
branches:
master:
- step: *compile
- parallel:
- step: *security-integration
- step: *mailer-integration
- step: *notifications-integration
- step: *scheduler-integration
- step: *gateway-integration
- step: *pdf-integration
- step: *deploy-docs
- step: *deploy-docusaurus-to-github
custom:
deploy-mailer:
- step:
name: Build and push Mailer to DockerHub
script:
- bash ./ci-scripts/docker-release.sh mailer ./services/mailer/docker/prod/Dockerfile ./services/mailer/package.json
services:
- docker
deploy-scheduler:
- step:
name: Build and push Scheduler to DockerHub
script:
- bash ./ci-scripts/docker-release.sh scheduler ./services/scheduler/docker/prod/Dockerfile ./services/scheduler/package.json
services:
- docker
deploy-security:
- step:
name: Build and push Security to DockerHub
script:
- bash ./ci-scripts/docker-release.sh security ./services/security/docker/prod/Dockerfile ./services/security/package.json
services:
- docker
deploy-gateway:
- step:
name: Build and push Gateway to DockerHub
script:
- bash ./ci-scripts/docker-release.sh gateway ./services/gateway/docker/prod/Dockerfile ./services/gateway/package.json
services:
- docker
deploy-notifications:
- step:
name: Build and push Notifications to DockerHub
script:
- bash ./ci-scripts/docker-release.sh notifications ./services/notifications/docker/prod/Dockerfile ./services/notifications/package.json
services:
- docker
deploy-pdf:
- step:
name: Build and push Pdf to DockerHub
script:
- bash ./ci-scripts/docker-release.sh pdf ./services/pdf/docker/prod/Dockerfile ./services/pdf/package.json
services:
- docker
generate-api-doc-and-push-to-github:
- step: *deploy-docs
push-docusaurus-doc-to-github:
- step: *deploy-docusaurus-to-github