Browse Source

Trying rsync

Nathan Schneider 4 years ago
parent
commit
e27537b358
1 changed files with 9 additions and 5 deletions
  1. 9 5
      .gitlab-ci.yml

+ 9 - 5
.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