Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiroma committed Mar 20, 2023
1 parent acecf78 commit ac58d3b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# drupal-cleanup-action
Cleanup older deployments

SSH into a remote server and cleanup older deployments (directories) with defined pattern. Preserve only the newest number of configured directories.

Usage:

```
- name: 'Cleanup old releases'
uses: eaudeweb/[email protected]
with:
ssh_user: ${{ secrets.TEST_SSH_USER }}
ssh_host: ${{ secrets.TEST_SSH_HOST }}
ssh_key: ${{ secrets.TEST_SSH_KEY }}
cleanup_dir: /var/www/artifacts/example.org
pattern: release-*
retain: 5
```

0 comments on commit ac58d3b

Please sign in to comment.