forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build/push-official-release.sh checks if proper account is active, no…
…t just present
- Loading branch information
Isaac Hollander McCreery
committed
Apr 28, 2016
1 parent
be87587
commit a9c0046
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ KUBE_GCS_PUBLISH_VERSION="${KUBE_RELEASE_VERSION}" | |
|
||
KUBE_DOCKER_REGISTRY="gcr.io/google_containers" | ||
KUBE_DOCKER_IMAGE_TAG="${KUBE_RELEASE_VERSION}" | ||
KUBE_GCLOUD_PRODUCTION_ACCOUNT="[email protected]" | ||
|
||
KUBE_ROOT="$(dirname "${BASH_SOURCE}")/.." | ||
source "${KUBE_ROOT}/build/common.sh" | ||
|
@@ -47,8 +48,8 @@ if "${KUBE_ROOT}/cluster/kubectl.sh" 'version' | grep 'Client' | grep 'dirty'; t | |
exit 1 | ||
fi | ||
|
||
if ! kube::release::has_gcloud_account [email protected]; then | ||
kube::log::error "Pushing images to gcr.io/google_containers requires credentials for account [email protected]" | ||
if ! kube::release::gcloud_account_is_active "${KUBE_GCLOUD_PRODUCTION_ACCOUNT}"; then | ||
kube::log::error "Pushing images to gcr.io/google_containers requires being logged in as ${KUBE_GCLOUD_PRODUCTION_ACCOUNT}" | ||
return 1 | ||
fi | ||
|
||
|