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