From c7792f7879875b1281bbd1892de7dbf06917cd8c Mon Sep 17 00:00:00 2001 From: Damien Pobel Date: Fri, 17 Nov 2023 22:53:26 +0100 Subject: [PATCH] fix(deploy): adapt deploy to new server --- bin/deploy.sh | 4 ++-- ssh/id_ecdsa.enc | Bin 274 -> 461 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/deploy.sh b/bin/deploy.sh index 5712ed42..24e1261b 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -6,7 +6,7 @@ chmod 600 ssh/id_ecdsa SSH_CMD="ssh -i ssh/id_ecdsa -o 'StrictHostKeyChecking no'" if [ "$GITHUB_EVENT_NAME" != "pull_request" ] ; then echo "## Pushing main site" - rsync -avcz --delete -e "$SSH_CMD" web/ dp@damien.pobel.fr:~/web/ + rsync -avcz --delete -e "$SSH_CMD" web/ dp@damien.pobel.fr:prod/ # trigger refresh of github profile README curl -H "Authorization: token $PERSONAL_TOKEN" -H "Accept: application/vnd.github.v3+json" -X POST -d "{\"ref\": \"main\"}" "https://api.github.com/repos/dpobel/dpobel/actions/workflows/main.yml/dispatches" # trigger refresh of my github page @@ -14,7 +14,7 @@ if [ "$GITHUB_EVENT_NAME" != "pull_request" ] ; then else PR_ID=`echo $GITHUB_REF_NAME|cut -d '/' -f 1` echo "## Pushing to ${PR_ID}.damien.pobel.fr" - rsync -avcz --delete -e "$SSH_CMD" web/ dp@damien.pobel.fr:~/testing/${PR_ID}.damien.pobel.fr + rsync -avcz --delete -e "$SSH_CMD" web/ dp@damien.pobel.fr:testing/${PR_ID}.damien.pobel.fr COMPARE=`./bin/compare.sh` COMMENT=`echo "Test it at https://${PR_ID}.damien.pobel.fr/\n\n---\n\n$COMPARE"` PAYLOAD=`jq -n --arg BODY "$COMMENT" '{body: $BODY}'` diff --git a/ssh/id_ecdsa.enc b/ssh/id_ecdsa.enc index 6fd1a67cd49241426a610c9e5c68dcf00dfd0eed..e7db5d03c4ba5059953ae2a23405aa29ec651844 100644 GIT binary patch literal 461 zcmV;;0W$uK4Fm}T0{2#oDC#>9cmLAB`vDvXpHi{j;R0l@Z38xK?<)~ekgXq@5xJy9 zEUC|uv)?aOHhdwHddXIba|Lg}J9wTt_%1S`%3S~`WM`fbb9}QW?+64F@j)AQM(s|P z@dB4RpqlAP(08bC(qmM5@))q}JV@?IwdoXG7D0oOG^r z+cNZ<=Zz;;TPWt91PUQuh#|i@iZKrNL@@pQFwqCUYGg1Q9P*(67;=YRSHH5XIq99L zavLQ(sZb%e*$~9A;+D3cl9jk&(Vgfl49E)m->b`Z_$Ps5tM=l2mM!@uZ!bpf@j>D! zD~4G5Ulw0M>~+Q`uA2u_D!6CnYSKdunE;-$ii^RG6-58BK*X@VFuNI^-Pv?r9A?n_ z{>!FL>Qrn&dOx@B1M=(_dK<)#oa4QUaQul!;U^0{_}u;J5tC_Mq=R*UK@y7-BWLnf zD3h0*mD#UIiEK2FC&;JsB;(UmcV4+Hs&7T`ePdXi+G;Bz(aEwqG06VHm>2@7dgaBy DRN&tQ literal 274 zcmV+t0qy>b4Fm}T0^Q3W;x~?`NdMBnKmphFaKaF@Qx(4+_cSf=8_^9`Eb$jNLSynk zsHY;{r8UPf+INfn=uokK$PvRmhWgR$b4gaxi%86IU*|(G4hGcDV&!af{UnX>^u{#@ zuz1>B9AbkvS35nP6{80sJ%vexB>(^b