-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
39 lines (38 loc) · 1.15 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
# This is a sample build configuration for JavaScript.
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:16
pipelines:
branches:
staging:
- step:
deployment: staging
caches:
- node
script:
- npm install
- npm run test:e2e
- echo $STAGING_SERVER_IPA
# - ssh "ubuntu@$STAGING_SERVER_IPA" "cd /app && /bin/bash deploy.sh"
mock:
- step:
deployment: mock
caches:
- node
script:
- npm install
- npm run test:e2e
- echo $MOCK_SERVER_IPA
# - ssh "ubuntu@$MOCK_SERVER_IPA" "cd /app && /bin/bash deploy.sh"
master:
- step:
deployment: production
caches:
- node
script:
- npm install
- npm run test:e2e
- echo $PRODUCTION_SERVER_IPA
# - ssh "ubuntu@$PRODUCTION_SERVER_IPA" "cd /app && /bin/bash deploy.sh"