Trying jekyll deploy

This commit is contained in:
2019-07-10 22:14:11 +00:00
parent e1905197c8
commit 2b079924c7
2 changed files with 14 additions and 15 deletions

View File

@ -5,25 +5,23 @@ stages:
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.."
- cd _site && rsync --verbose -crPze ssh --delete --rsh="sshpass -p $CU_PASSWORD ssh -o StrictHostKeyChecking=no " ./* $CU_USR@$CU_HOSTNAME:/data/web/htdocs/cmci/medlab
- echo "Done!"
- jekyll deploy
# stage: deploy
# only:
# - master
# environment:
# name: website
# url: https://cmci.colorado.edu/cmci
# script:
# - echo "Building.."
# - chmod +x ./_scripts/build.sh
# - ./_scripts/build.sh
# - echo "Deploying.."
# - chmod +x ./_scripts/deploy_website.sh
# - ./_scripts/deploy_website.sh

View File

@ -36,7 +36,8 @@ collections:
deploy:
# - cd .. && jekyll build
# - cd .. && read -p 'Commit message: ' message && git commit -a -m $message
- rsync -crPze ssh --delete ./* nasc0399@cmci.colorado.edu:/data/web/htdocs/cmci/medlab
- rsync -crPze --delete --rsh="sshpass -p $CU_PASSWORD ssh -o StrictHostKeyChecking=no " ./* $CU_USR@$CU_HOST:/data/web/htdocs/cmci/medlab
# - rsync -crPze ssh --delete ./* nasc0399@cmci.colorado.edu:/data/web/htdocs/cmci/medlab
# Exclude from processing.
# The following items will not be processed, by default. Create a custom list