updated jenkins build

This commit is contained in:
Robert Johnson 2024-02-15 12:37:41 -05:00
parent c155c458ab
commit 59f936bfce
2 changed files with 2 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -27,7 +27,7 @@ pipeline {
}
stage('Deploy') {
steps {
sh 'scp -r -o StrictHostKeychecking=no -i $KEY_FILE _site/ ubuntu@box.myemail.cloud:/home/ubuntu'
sh 'scp -r -o StrictHostKeychecking=no -i $KEY_FILE _site/ ubuntu@box.myemail.cloud:/home/ubuntu/robertjohnson.work/'
sh 'ssh ubuntu@box.myemail.cloud -i $KEY_FILE \'bash -s\' < deploy.sh'
}
}

View File

@ -1,5 +1,5 @@
#!/bin/bash
sudo rm -Rf /home/user-data/www/robertjohnson.work
sudo mv -f /home/ubuntu/_site /home/user-data/www/robertjohnson.work
sudo mv -f /home/ubuntu/robertjohnson.work/_site /home/user-data/www/robertjohnson.work
sudo chown -R user-data:root /home/user-data/www/robertjohnson.work
sudo chmod -R 755 /home/user-data/www/robertjohnson.work