This patch: - moves docker publishing to main repo - extracts all the logic from the GHA YML file to Bash - starts using the script in both `publish_canary.yml` and `publish_release.yml` Fixes #10351