Upload is based on build, since it builds and uploads for the
gate. This means we need to add the mirror here too, so that we're
installing docker from the deb mirror.
We convert to https at the same time for both jobs.
Change-Id: Ie1ff253e6cfc3e666a4e6be919a08f3a5d041319