containers: Add utility to ensure gcloud helper is configured.

We need to use gcloud credentials to push to GCS container
registries.  These aren't necessarily configured by default on a
given host, so we need to ensure that the configuration is correct
before we push images.

BUG=b:209543161
TEST=manual build_api call.

Change-Id: I6fc1b1ae8c01452630e0b6e768519034283e506b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/3321290
Tested-by: Sean McAllister <smcallis@google.com>
Auto-Submit: Sean McAllister <smcallis@google.com>
Reviewed-by: Jared Loucks <jaredloucks@google.com>
Reviewed-by: Derek Beckett <dbeckett@chromium.org>
Commit-Queue: Sean McAllister <smcallis@google.com>
1 file changed