This commit is contained in:
parent
a735f0773f
commit
5ac9024203
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue