.gitlab-ci.yml 594 B

123456789101112131415161718192021222324252627
  1. // FTP auto-deploy
  2. // instructions here: https://is.gd/D84vXz
  3. image: ruby:2.4.1
  4. stages:
  5. - deploy
  6. before_script:
  7. - apt-get update -qq && apt-get install -y -qq libcurl4-openssl-dev lftp
  8. - bundle install
  9. - gem install jekyll
  10. - gem install jekyll-theme-minima
  11. deploy_script:
  12. stage: deploy
  13. only:
  14. - master
  15. environment:
  16. name: website
  17. url: https://cmci.colorado.edu/cmci
  18. script:
  19. - echo "Building.."
  20. - chmod +x ./_scripts/build.sh
  21. - ./_scripts/build.sh
  22. - echo "Deploying.."
  23. - chmod +x ./_scripts/deploy_website.sh
  24. - ./_scripts/deploy_website.sh