medlab-website-archival/.gitlab-ci.yml

30 lines
886 B
YAML

# FTP auto-deploy; instructions here: https://is.gd/D84vXz
image: ruby:2.4.1
stages:
- deploy
before_script:
# - apt-get update -qq && apt-get install -y -qq libcurl4-openssl-dev lftp
- apt-get update -qq && apt-get install -y -qq rsync sshpass
- bundle install
- gem install jekyll
deploy_script:
stage: deploy
only:
- master
environment:
name: website
url: https://cmci.colorado.edu/cmci
script:
- echo "Building.."
- bundle exec jekyll build --config _config.yml
- echo "Deploying.."
- 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
- echo "Done!"
# - chmod +x ./_scripts/build.sh
# - ./_scripts/build.sh
# - chmod +x ./_scripts/deploy_website.sh
# - ./_scripts/deploy_website.sh