forked from ashleydavis/nodejs-microservices-example
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbitbucket-pipelines.yml
36 lines (34 loc) · 1.18 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
image: hashicorp/terraform:light
pipelines:
default:
- parallel: # Build Docker images and push to registry in parallel.
- step:
name: Build service
services:
- docker
script:
- export VERSION=$BITBUCKET_BUILD_NUMBER
- chmod +x ./scripts/build-image.sh
- ./scripts/build-image.sh service
- chmod +x ./scripts/push-image.sh
- ./scripts/push-image.sh service
- step:
name: Build web
services:
- docker
script:
- export VERSION=$BITBUCKET_BUILD_NUMBER
- chmod +x ./scripts/build-image.sh
- ./scripts/build-image.sh web
- chmod +x ./scripts/push-image.sh
- ./scripts/push-image.sh web
- step: # Provision and test cloud environment.
name: Deploy cluster
deployment: production
script:
- export VERSION=$BITBUCKET_BUILD_NUMBER
- export ENVIRONMENT=production
- chmod +x ./scripts/provision-kubernetes.sh
- ./scripts/provision-kubernetes.sh
- chmod +x ./scripts/live-test.sh
- ./scripts/live-test.sh