-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
48 lines (48 loc) · 1.21 KB
/
bitbucket-pipelines.yml
File metadata and controls
48 lines (48 loc) · 1.21 KB
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
image: node:XX.XX.XX
definitions:
steps:
- step: &build
name: Build
clone:
depth: 5
script:
- git submodule update --init --remote --merge
- bash deploy-project/angular-spa/step-build.sh
artifacts:
- build.tar.gz
- deploy-project/angular-spa/*.sh
- step: &deploy
name: Deploy
trigger: manual
script:
- bash deploy-project/angular-spa/step-deploy.sh
pipelines:
default:
- step:
<<: *build
deployment: stage-build
name: Build for stage
- step:
<<: *deploy
deployment: test-server
name: Deploy to stage server
- step:
<<: *deploy
deployment: test-server-2
name: Deploy to second stage server
trigger: automatic
branches:
master:
- step:
<<: *build
deployment: production-build
name: Build for production
- step:
<<: *deploy
deployment: production-server
name: Deploy to production
- step:
<<: *deploy
deployment: production-server-2
name: Deploy to second production server
trigger: automatic