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