.gitlab-ci.yml 506 Bytes
Newer Older
Wolfgang Knopki's avatar
Wolfgang Knopki committed
1
deploy-testing:    
Rosanny Sihombing's avatar
Rosanny Sihombing committed
2
3
  stage: deploy
  script:
Wolfgang Knopki's avatar
Wolfgang Knopki committed
4
    - cat $configfiledev > ./config/config.js
Rosanny Sihombing's avatar
Rosanny Sihombing committed
5
6
7
8
9
10
11
    - npm install
    - "pm2 delete --silent account || :"
    - pm2 start ./app.js --name=account
    - pm2 save
  tags: 
    - testing
  only: 
12
    - testing
Wolfgang Knopki's avatar
Wolfgang Knopki committed
13
14
15
16
17
18
19
20
21
22
23
24
25

deploy-master:    
  stage: deploy
  script:
    - cat $configfileprod > ./config/config.js
    - npm install
    - "pm2 delete --silent account || :"
    - pm2 start ./app.js --name=account
    - pm2 save
  tags: 
    - production
  only: 
    - master