.gitlab-ci.yml 405 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
    - source ~/.bashrc
Wolfgang Knopki's avatar
Wolfgang Knopki committed
6
    - echo $NVM_DIR
Wolfgang Knopki's avatar
Wolfgang Knopki committed
7
8
9
  tags: 
    - testing
  only: 
Wolfgang Knopki's avatar
Wolfgang Knopki committed
10
11
    - testing
    
Wolfgang Knopki's avatar
Wolfgang Knopki committed
12
pages-production:    
Wolfgang Knopki's avatar
Wolfgang Knopki committed
13
14
  stage: deploy
  script:
Wolfgang Knopki's avatar
Wolfgang Knopki committed
15
    - cat $configfiledev > ./config/config.js
Wolfgang Knopki's avatar
Wolfgang Knopki committed
16
17
18
19
20
21
22
    - npm install
    - "pm2 delete --silent project || :"
    - pm2 start ./app.js --name=project
    - pm2 save
  tags: 
    - production
  only: 
23
    - master