Ajout script déploiement

This commit is contained in:
Antoine Lima 2023-09-14 01:56:52 +02:00
parent 57da7321d8
commit 60c37f4486
Signed by: antoine
GPG Key ID: 5D1E65E3DEB73410

12
deploy.sh Executable file
View File

@ -0,0 +1,12 @@
#! /usr/bin/bash
set -e
bundle exec jekyll build
USER_RE=`cat ../userrepas.txt`
sshpass -f ../mdpmaraj.txt sftp -P 6969 -oBatchMode=no -b - $USER_RE@sagou.in:/ << EOF
lcd _site
cd www
put -r .
bye
EOF