.gitlab-ci.yml 419 Bytes
Newer Older
Wolfgang Knopki's avatar
Wolfgang Knopki committed
1
pages-testing:    
Wolfgang Knopki's avatar
Wolfgang Knopki committed
2
3
4
5
6
7
8
9
10
  stage: deploy
  script:
    - npm install
    - "pm2 delete --silent project || :"
    - pm2 start ./app.js --name=project
    - pm2 save
  tags: 
    - testing
  only: 
Wolfgang Knopki's avatar
Wolfgang Knopki committed
11
12
    - testing
    
Wolfgang Knopki's avatar
Wolfgang Knopki committed
13
pages-production:    
Wolfgang Knopki's avatar
Wolfgang Knopki committed
14
15
16
17
18
19
20
21
22
23
  stage: deploy
  script:
    - npm install
    - "pm2 delete --silent project || :"
    - pm2 start ./app.js --name=project
    - pm2 save
  tags: 
    - production
  only: 
    - master