forked from ShibeTechnology/dogecoin-testnet-faucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
33 lines (30 loc) · 877 Bytes
/
.gitlab-ci.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
stages:
- buildFrontend
- testFrontend
- deployFrontend
buildFrontend:
stage: buildFrontend
script:
- cd frontend
- npm install
- make deps
testFrontend:
stage: testFrontend
script:
- cd frontend
- npm install
- npm start &
- sleep 10
- chmod +x ../tryKill.sh
- .././tryKill.sh
- make run
- sleep 5
- docker stop MockAPI
- docker rm MockAPI
deployFrontend:
stage: deployFrontend
environment:
name: staging
script:
- echo $CI_COMMIT_BRANCH
- ssh toffee@192.168.10.112 "cd ~/frontendDeployment/ && sudo rm -r dogecoin-testnet-faucet && git clone git@gitlab.com:toffee_/dogecoin-testnet-faucet.git && cd dogecoin-testnet-faucet && git checkout $CI_COMMIT_BRANCH && git pull && chmod +x tryKill.sh && ./tryKill.sh && cd frontend && npm install && screen -dm npm start && docker restart MockAPI"