pull/1/head
s00ner 2022-02-18 14:45:48 -05:00
parent 418ebb52ed
commit f171dcfe02
1 changed files with 5 additions and 5 deletions

10
Jenkinsfile vendored
View File

@ -13,11 +13,11 @@ pipeline {
[ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh
ssh-keyscan -t rsa,dsa baltimore-wiki.lxd >> ~/.ssh/known_hosts
ssh mdbook@baltimore-wiki.lxd << EOF
cd $(mktemp -d)
wget https://git.doublehack.me/s00ner/Baltimore-hackthebox-knowledgebase/archive/main.tar.gz
tar -xf main.tar.gz
rsync --recursive --exclude 'Jenkinsfile' --delete ./baltimore-hackthebox-knowledgebase/ /home/mdbook/wiki/src/
rm -rf $(pwd)
cd $(mktemp -d)
wget https://git.doublehack.me/s00ner/Baltimore-hackthebox-knowledgebase/archive/main.tar.gz
tar -xf main.tar.gz
rsync --recursive --exclude 'Jenkinsfile' --delete ./baltimore-hackthebox-knowledgebase/ /home/mdbook/wiki/src/
rm -rf $(pwd)
EOF
'''