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