diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f8d58bb..ce2a546 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,8 @@ 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 libcurl4-openssl-dev lftp + - apt-get update -qq && apt-get install -y -qq rsync sshpass - bundle install - gem install jekyll @@ -17,9 +18,12 @@ deploy_script: url: https://cmci.colorado.edu/cmci script: - echo "Building.." - - chmod +x ./_scripts/build.sh - - ./_scripts/build.sh + - bundle exec jekyll build --config _config.yml - echo "Deploying.." - - chmod +x ./_scripts/deploy_website.sh - - ./_scripts/deploy_website.sh + - rsync -crPze ssh --delete --rsh="sshpass -p $CU_PASSWORD ssh -o StrictHostKeyChecking=no " _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