ssh-deploy icon indicating copy to clipboard operation
ssh-deploy copied to clipboard

Rsync ARGS not working

Open NicolasJourdan opened this issue 1 year ago • 3 comments

Hello,

I'm using the ARGS environment variable to add some arguments to rsync however it seems like the arguments are not add to the rsync command.

My cd configuration :

            - name: Ssh deploy
              uses: easingthemes/[email protected]
              env:
                  SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }}
                  ARGS: "-rlgoDzvci"
                  REMOTE_HOST: ${{ secrets.DEPLOY_HOST }}
                  REMOTE_USER: ${{ secrets.DEPLOY_USER }}
                  TARGET: ${{ secrets.DEPLOY_TARGET }}
                  SCRIPT_BEFORE: |
                    whoami
                    ls -al
                  SCRIPT_BEFORE_REQUIRED: true
                  SCRIPT_AFTER: |
                    whoami
                    ls -al
                    echo $RSYNC_STDOUT
                  SCRIPT_AFTER_REQUIRED: true

The github action fails :

rsync: chgrp "***/.git/" failed: Operation not permitted (1)
...
rsync: chgrp "***/project/composer.json" failed: Operation not permitted (1)
...

I tried to sync the file from my PC using the same ssh key and it worked.

rsync project/composer.json ****@****:/home/****/www/project/composer.json -rlgoDzvci

NicolasJourdan avatar Jul 08 '24 21:07 NicolasJourdan

I just encountered this error. Verifying that the remote directory is owned by your SSH user and has the appropriate permissions resolved the issue for me

Shimon42 avatar Jul 13 '24 02:07 Shimon42

I tried this the same ssh key from my computer and I don't have any problems. :/

NicolasJourdan avatar Jul 13 '24 08:07 NicolasJourdan

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 12 '24 01:10 github-actions[bot]