An error occurred while loading the file. Please try again.
-
Rosanny Sihombing authored1e2dd5d9
This GitLab CI configuration is valid.
Learn more
deploy-testing:
stage: deploy
script:
- rm -rf ./node_modules
- npm i --omit=dev
- cat $configfiledev > ./built/config/config.js
- cat $cert > ./built/routes/cert/cert.pem
- cat $certidp > ./built/routes/cert/cert_idp.pem
- cat $key > ./built/routes/cert/key.pem
- "pm2 delete --silent account || :"
- pm2 start ./built/app.js --name=account
- pm2 save
tags:
- testing
only:
- testing
deploy-master:
stage: deploy
script:
- cat $configfileprod > ./config/config.js
- cat $cert > ./routes/cert/cert.pem
- cat $certidp > ./routes/cert/cert_idp.pem
- cat $key > ./routes/cert/key.pem
- npm install
- "pm2 delete --silent account || :"
- pm2 start ./app.js --name=account
- pm2 save
tags:
- production
only:
- master