flutter/dev/ci/docker_linux/docker_login.sh
Greg Spencer 77645df72c
Try again to switch docs and gallery deployment to Cirrus (#20276)
This switches docs and gallery build and deployment to use Cirrus CI instead of Travis, reapplying the changes from #19925, but updating the Firebase tokens for upload, and refining docs.sh some to limit retries to five times (instead of indefinitely).
2018-08-06 17:33:31 -07:00

7 lines
287 B
Bash
Executable File

#!/bin/bash
if [[ -n "$CIRRUS_CI" && -n "$GCLOUD_CREDENTIALS" ]]; then
echo "$GCLOUD_CREDENTIALS" | base64 --decode | docker login -u _json_key --password-stdin https://gcr.io
else
gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://gcr.io
fi