mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-06-21 12:02:09 +10:00
feat: Add multi source and multi target support
This commit is contained in:
parent
98ee38d52e
commit
73a65ec97c
9 changed files with 227 additions and 70 deletions
11
README.md
11
README.md
|
@ -47,7 +47,8 @@ For any initial/required rsync flags, eg: `-avzr --delete`
|
|||
|
||||
##### 6. `SOURCE` (optional, default '')
|
||||
|
||||
The source directory, path relative to `$GITHUB_WORKSPACE` root, eg: `dist/`
|
||||
The source directory, path relative to `$GITHUB_WORKSPACE` root, eg: `dist/`.
|
||||
Multiple sources should be separated by space.
|
||||
|
||||
##### 7. `TARGET` (optional, default '/home/REMOTE_USER/')
|
||||
|
||||
|
@ -148,6 +149,14 @@ Check actions tab for example.
|
|||
|
||||
More info for SSH keys: https://www.ssh.com/ssh/public-key-authentication
|
||||
|
||||
## Tips
|
||||
|
||||
- Optional ENV variables are created for simple requirements.
|
||||
For complex use cases, use `ARGS` and `SSH_CMD_ARGS` to fully configure `rsync` with all possible options.
|
||||
- If you need to use multiple steps, eg multi targets deployment, save shared ENV variables in `>> $GITHUB_ENV`.
|
||||
Check .github/workflows/e2e.yml for an example
|
||||
- For multi sources, use -R ARG to manipulate folders structure.
|
||||
|
||||
|
||||
## Disclaimer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue