From d0a5315c5c58c2168e7f3ee7fe65e942ec8cb9bd Mon Sep 17 00:00:00 2001 From: Alban Crequy Date: Wed, 8 Feb 2017 17:58:02 +0100 Subject: [PATCH] bin/setup-circleci-secrets: possibly use generic credentials If the $SECRET_SCRIPT environment variable is defined in CircleCI, this can override the GCE credentials. I now use "base64" instead of "openssl base64" in order to support long lines in base64 text. It's useful when the text comes from a long environment variable like $SECRET_SCRIPT defined in CircleCI. Also, the $PROJECT environment variable can now override the GCE project name. Before, it needed to be named scope-integration-tests. --- bin/setup-circleci-secrets | 16 +++++++++++++--- integration/gce.sh | 4 ++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/bin/setup-circleci-secrets b/bin/setup-circleci-secrets index e6b83318a..69da94e81 100755 --- a/bin/setup-circleci-secrets +++ b/bin/setup-circleci-secrets @@ -5,9 +5,10 @@ set -eu # openssl enc -in do-setup-circleci-secrets.orig -out setup-circleci-secrets.orig -e -aes256 -pass stdin # openssl base64 < setup-circleci-secrets.orig -openssl base64 -d <