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: 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 - bundle install
- gem install jekyll - gem install jekyll
deploy_script: deploy_script:
stage: deploy - jekyll deploy
only:
- master # stage: deploy
environment: # only:
name: website # - master
url: https://cmci.colorado.edu/cmci # environment:
script: # name: website
- echo "Building.." # url: https://cmci.colorado.edu/cmci
- bundle exec jekyll build --config _config.yml # script:
- echo "Deploying.." # - echo "Building.."
- 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!"
# - chmod +x ./_scripts/build.sh # - chmod +x ./_scripts/build.sh
# - ./_scripts/build.sh # - ./_scripts/build.sh
# - echo "Deploying.."
# - chmod +x ./_scripts/deploy_website.sh # - chmod +x ./_scripts/deploy_website.sh
# - ./_scripts/deploy_website.sh # - ./_scripts/deploy_website.sh

View File

@ -36,7 +36,8 @@ collections:
deploy: deploy:
# - cd .. && jekyll build # - cd .. && jekyll build
# - cd .. && read -p 'Commit message: ' message && git commit -a -m $message # - 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. # Exclude from processing.
# The following items will not be processed, by default. Create a custom list # The following items will not be processed, by default. Create a custom list