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_SSHKEY
|
||||||
- RSYNC_TARGET_SERVER
|
- RSYNC_TARGET_SERVER
|
||||||
- RSYNC_TARGET_USER
|
- RSYNC_TARGET_USER
|
||||||
environment:
|
- RSYNC_TARGET_PATH
|
||||||
- TARGET_PATH=/webroot/adora.codes
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
@ -28,7 +27,7 @@ steps:
|
||||||
- echo "$RSYNC_SSHKEY" > $HOME/.ssh/id_ed25519
|
- echo "$RSYNC_SSHKEY" > $HOME/.ssh/id_ed25519
|
||||||
- chmod 0600 $HOME/.ssh/id_ed25519
|
- chmod 0600 $HOME/.ssh/id_ed25519
|
||||||
- ssh-keyscan -t ed25519 $RSYNC_TARGET_SERVER >> $HOME/.ssh/known_hosts
|
- 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