[master] refactor static packages
closes #718 closes #665
This is a follow-up #718 and #665. Now that docker-engine supports cross-compilation with --platform https://github.com/moby/moby/pull/44546 and compose too https://github.com/docker/compose/pull/9744 we can move on better support for static packages and mutualize job steps and build logic.
Versioning for plugins doesn't go through the gen-static-ver script. Let me know if we should.
Signed-off-by: CrazyMax [email protected]
@thaJeztah As discussed added extra commit to keep the same file format for bundles so for now we keep using current arches to reflect folder structure on download.docker.com
Also adds another commit that creates docker.tgz archive for backward compat.
Will open follow-ups on release-repo and release-packaging to be sure everything works fine.