update CI
This commit is contained in:
parent
5fe545dea4
commit
422f7436f6
1 changed files with 3 additions and 2 deletions
|
@ -19,6 +19,7 @@ steps:
|
||||||
- RSYNC_TARGET_USER
|
- RSYNC_TARGET_USER
|
||||||
environment:
|
environment:
|
||||||
- TARGET_PATH=/webroot/certwarden-deploy.adora.codes
|
- TARGET_PATH=/webroot/certwarden-deploy.adora.codes
|
||||||
|
- RSYNC_TARGET_PORT=2003
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
@ -27,5 +28,5 @@ steps:
|
||||||
- mkdir -p $HOME/.ssh
|
- mkdir -p $HOME/.ssh
|
||||||
- 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 -p $RSYNC_TARGET_PORT $RSYNC_TARGET_SERVER >> $HOME/.ssh/known_hosts
|
||||||
- rsync -avh --delete ./public/ $RSYNC_TARGET_USER@$RSYNC_TARGET_SERVER:$TARGET_PATH
|
- rsync -avh --port=$RSYNC_TARGET_PORT --delete ./public/ $RSYNC_TARGET_USER@$RSYNC_TARGET_SERVER:$TARGET_PATH
|
||||||
|
|
Reference in a new issue