.gitlab-ci.yml 555 B

12345678910111213141516171819202122232425
  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. - bundle install
  8. - gem install jekyll
  9. deploy_script:
  10. stage: deploy
  11. only:
  12. - master
  13. environment:
  14. name: website
  15. url: https://cmci.colorado.edu/cmci
  16. script:
  17. - echo "Building.."
  18. - chmod +x ./_scripts/build.sh
  19. - ./_scripts/build.sh
  20. - echo "Deploying.."
  21. - chmod +x ./_scripts/deploy_website.sh
  22. - ./_scripts/deploy_website.sh