.gitlab-ci.yml 886 B

1234567891011121314151617181920212223242526272829
  1. # FTP auto-deploy; instructions here: https://is.gd/D84vXz
  2. image: ruby:2.4.1
  3. stages:
  4. - deploy
  5. before_script:
  6. # - apt-get update -qq && apt-get install -y -qq libcurl4-openssl-dev lftp
  7. - apt-get update -qq && apt-get install -y -qq rsync sshpass
  8. - bundle install
  9. - gem install jekyll
  10. deploy_script:
  11. stage: deploy
  12. only:
  13. - master
  14. environment:
  15. name: website
  16. url: https://cmci.colorado.edu/cmci
  17. script:
  18. - echo "Building.."
  19. - bundle exec jekyll build --config _config.yml
  20. - echo "Deploying.."
  21. - rsync -crPze ssh --delete --rsh="sshpass -p $CU_PASSWORD ssh -o StrictHostKeyChecking=no " /builds/medlabboulder/medlab-website/_site/* $CU_USR@$CU_HOSTNAME:/data/web/htdocs/cmci/medlab
  22. - echo "Done!"
  23. # - chmod +x ./_scripts/build.sh
  24. # - ./_scripts/build.sh
  25. # - chmod +x ./_scripts/deploy_website.sh
  26. # - ./_scripts/deploy_website.sh