[WIP] Bringing the docker publish plugin from master to exp

Not tested yet.

Fixes #518