update CI :(
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2024-04-23 22:24:18 +02:00
parent a735f0773f
commit 5ac9024203
Signed by: adoralaura
GPG key ID: E2E0F82107536C1B

View file

@ -17,8 +17,7 @@ steps:
- RSYNC_SSHKEY
- RSYNC_TARGET_SERVER
- RSYNC_TARGET_USER
environment:
- TARGET_PATH=/webroot/adora.codes
- RSYNC_TARGET_PATH
when:
- event: push
branch: main
@ -28,7 +27,7 @@ steps:
- echo "$RSYNC_SSHKEY" > $HOME/.ssh/id_ed25519
- chmod 0600 $HOME/.ssh/id_ed25519
- ssh-keyscan -t ed25519 $RSYNC_TARGET_SERVER >> $HOME/.ssh/known_hosts
- rsync -avh --delete ./public/ $RSYNC_TARGET_USER@$RSYNC_TARGET_SERVER:$TARGET_PATH
- rsync -avh --delete ./public/ $RSYNC_TARGET_USER@$RSYNC_TARGET_SERVER:$RSYNC_TARGET_PATH