You just need to put a folder containing the plugin code in the plugins folder.
The yaml hook gives you full bash power so you can:
wgeta tarball with plugin codersyncfrom somewhere with plugin codescpit from another servergit clonefrom a local gitlab install
etc.