forked from robert/robertjohnson.work
updated jenkins build
This commit is contained in:
parent
c155c458ab
commit
59f936bfce
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user