My ham website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
885 B

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. # This file is a template, and might need editing before it works on your project.
  2. # Official framework image. Look for the different tagged releases at:
  3. # https://hub.docker.com/r/library/node/tags/
  4. image: node:latest
  5. cache:
  6. paths:
  7. - node_modules/
  8. before_script:
  9. - apt-get update -qq && apt-get install -y -qq sshpass
  10. test_coverage:
  11. script:
  12. - npm install
  13. - npm install --global mocha nyc
  14. - npm run coverage
  15. deploy_prod:
  16. script:
  17. - echo "Deploying to Production"
  18. - npm install
  19. - sshpass -V
  20. - export SSHPASS=$SSH_PASS
  21. - sshpass -e ssh root@45.55.44.195 "cd /home/forge/leviolson-website && git pull && bash -c \"pm2 stop LeviOlson.com && pm2 delete LeviOlson.com && pm2 start app.js --name LeviOlson.com && pm2 logs --nostream --lines 2 LeviOlson.com\""
  22. environment:
  23. name: production
  24. url: https://leviolson.com
  25. only:
  26. - master