eaudeweb/Cleanup old releases from target server

SSH into the target server and delete old releases leaving only newest ones. Provide absolute path and the number of releases to retain

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
ssh_userSSH user accountyes
ssh_hostSSH host serveryes
ssh_keySSH private keyyes
ssh_user_jumphostSSH user account for jumphostno""
ssh_host_jumphostSSH host server for jumphostno""
cleanup_dirAbsolute path to directory where releases are storedyes
patternDirectory naming pattern to cleanup*release-*
retainNumber of newest releases to retain. Older will be deleted5

no outputs