.gitlab-ci.yml 591 B

1234567891011121314151617181920212223242526
  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. - gem install jekyll-theme-minima
  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. - chmod +x ./_scripts/build.sh
  20. - ./_scripts/build.sh
  21. - echo "Deploying.."
  22. - chmod +x ./_scripts/deploy_website.sh
  23. - ./_scripts/deploy_website.sh