-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbitbucket-pipelines.yml
executable file
·56 lines (53 loc) · 2.33 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
image: atayen/atayen:v2
clone:
depth: full
pipelines:
default:
- step:
name: mirroring github with bitbucket
script:
- git push git@github.com:SaTT-Wallet/Frontend.git master --force
branches:
release/*:
- step:
name: check directory
script:
- /bin/ls /opt/atlassian/pipelines/agent/build/
- step:
name: check directory
script:
- cd /opt/atlassian/pipelines/agent/build/
- step:
name: put file on production
script:
# - mkdir ~/.ssh
# - touch ~/.ssh/know_hosts
- ssh-keyscan -H 92.243.9.233 >> ~/.ssh/known_hosts
- echo ${SCP_PASSWORD_SATT}
- echo 6GjBP86f
- ssh satt@92.243.9.233 <<< 6GjBP86f "cd /home/satt/wallet_satt/satt-wallet && npm install"
- ssh satt@92.243.9.233 <<< ${SCP_PASSWORD_SATT} "cd /home/satt/wallet_satt/satt-wallet && git stash"
- ssh satt@92.243.9.233 <<< ${SCP_PASSWORD_SATT} "cd /home/satt/wallet_satt/satt-wallet && ng config -g cli.warnings.versionMismatch false"
- ssh satt@92.243.9.233 <<< ${SCP_PASSWORD_SATT} "cd /home/satt/wallet_satt/satt-wallet && git pull"
- ssh satt@92.243.9.233 <<< ${SCP_PASSWORD_SATT} " cd /home/satt/wallet_satt/satt-wallet && ng build --configuration dev-ssr "
- ssh satt@92.243.9.233 <<< ${SCP_PASSWORD_SATT} "cd /home/satt/wallet_satt/satt-wallet && ng run satt-token-atayen:server --configuration dev-ssr"
- ssh satt@92.243.9.233 <<< ${SCP_PASSWORD_SATT} "cd /home/satt/wallet_satt/satt-wallet && pm2 restart 0 "
feature/*:
- step:
name: check directory
script:
- /bin/ls /opt/atlassian/pipelines/agent/build/
- step:
name: check directory
script:
- cd /opt/atlassian/pipelines/agent/build/
- step:
name: add angular-eslint/schematics
script:
- cd /opt/atlassian/pipelines/agent/build/
- rm -rf package-lock.json
- npm install -g @angular/cli
- rm -rf node_modules/
- npm install --force
- ng add @angular-eslint/schematics
- ng lint