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

Post-deployment commands

Open thallesdaniell opened this issue 4 years ago • 1 comments

In some projects, it is necessary to run commands after deployment. I'm creating another step just to run the post-deployment steps. But it would be nice to have the deployment and execution in just one step.

thallesdaniell avatar Aug 15 '21 17:08 thallesdaniell

use this one: appleboy/ssh-action@master

seedsaad avatar Dec 06 '21 10:12 seedsaad

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 Jan 02 '23 01:01 github-actions[bot]

Feature added:

  1. SCRIPT_BEFORE (optional, default '') Script to run on host machine before rsync. Single line or multiline commands. Execution is preformed by storing commands in .sh file and executing it via .bash over ssh

  2. SCRIPT_AFTER (optional, default '') Script to run on host machine after rsync. Rsync output is stored in $RSYNC_STDOUT env variable.

Screenshot 2023-01-03 at 04 12 32

easingthemes avatar Jan 03 '23 03:01 easingthemes