ssh options in rsync

This commit is contained in:
Lanta 2023-11-21 09:52:25 +01:00
parent 0764e94c2f
commit 2dc8144780

View file

@ -29,8 +29,7 @@ jobs:
remote-user: stats remote-user: stats
private-ssh-key: ${{ secrets.SSH_KEY }} private-ssh-key: ${{ secrets.SSH_KEY }}
destination-path: ${{ env.DESTINATION }} destination-path: ${{ env.DESTINATION }}
rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php 'ssh -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR'
ssh-options: -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR
- name: LINK TO WEBSITE - name: LINK TO WEBSITE
run: | run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then