This repository was archived by the owner on Apr 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 13 files changed +30
-11
lines changed Expand file tree Collapse file tree 13 files changed +30
-11
lines changed Original file line number Diff line number Diff line change @@ -149,21 +149,24 @@ jobs:
149149 name : Decrypt credentials.
150150 command : |
151151 if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then
152- openssl aes-256-cbc -d -in .circleci/key.json.enc \
153- -out .circleci/key.json \
154- -k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
152+ for encrypted_key in .circleci/*.json.enc; do
153+ openssl aes-256-cbc -d -in $encrypted_key \
154+ -out $(echo $encrypted_key | sed 's/\.enc//') \
155+ -k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
156+ done
155157 fi
156158 - run : *npm_install_and_link
157159 - run :
158160 name : Run system tests.
159161 command : npm run system-test
160162 environment :
163+ GCLOUD_PROJECT : long-door-651
161164 GOOGLE_APPLICATION_CREDENTIALS : .circleci/key.json
162165 - run :
163166 name : Remove unencrypted key.
164167 command : |
165168 if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then
166- rm .circleci/key .json
169+ rm .circleci/* .json
167170 fi
168171 when : always
169172 publish_npm :
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616# Configure the docker image for kokoro-trampoline.
1717env_vars: {
1818 key: " TRAMPOLINE_IMAGE"
19- value: " gcr.io/cloud-devrel-kokoro-resources/node:10"
19+ value: " gcr.io/cloud-devrel-kokoro-resources/node:10-user "
2020}
2121env_vars: {
2222 key: " TRAMPOLINE_BUILD_FILE"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616# Configure the docker image for kokoro-trampoline.
1717env_vars: {
1818 key: " TRAMPOLINE_IMAGE"
19- value: " gcr.io/cloud-devrel-kokoro-resources/node:10"
19+ value: " gcr.io/cloud-devrel-kokoro-resources/node:10-user "
2020}
2121env_vars: {
2222 key: " TRAMPOLINE_BUILD_FILE"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616# Configure the docker image for kokoro-trampoline.
1717env_vars: {
1818 key: " TRAMPOLINE_IMAGE"
19- value: " gcr.io/cloud-devrel-kokoro-resources/node:6"
19+ value: " gcr.io/cloud-devrel-kokoro-resources/node:6-user "
2020}
2121env_vars: {
2222 key: " TRAMPOLINE_BUILD_FILE"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616# Configure the docker image for kokoro-trampoline.
1717env_vars: {
1818 key: " TRAMPOLINE_IMAGE"
19- value: " gcr.io/cloud-devrel-kokoro-resources/node:8"
19+ value: " gcr.io/cloud-devrel-kokoro-resources/node:8-user "
2020}
2121env_vars: {
2222 key: " TRAMPOLINE_BUILD_FILE"
Original file line number Diff line number Diff line change 1616
1717set -xeo pipefail
1818
19+ export NPM_CONFIG_PREFIX=/home/node/.npm-global
20+
1921cd $( dirname $0 ) /..
2022
2123npm install
Original file line number Diff line number Diff line change 1616
1717set -xeo pipefail
1818
19+ export NPM_CONFIG_PREFIX=/home/node/.npm-global
20+
1921cd $( dirname $0 ) /..
2022
2123npm install
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616# Configure the docker image for kokoro-trampoline.
1717env_vars: {
1818 key: " TRAMPOLINE_IMAGE"
19- value: " gcr.io/cloud-devrel-kokoro-resources/node:10"
19+ value: " gcr.io/cloud-devrel-kokoro-resources/node:10-user "
2020}
2121env_vars: {
2222 key: " TRAMPOLINE_BUILD_FILE"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616# Configure the docker image for kokoro-trampoline.
1717env_vars: {
1818 key: " TRAMPOLINE_IMAGE"
19- value: " gcr.io/cloud-devrel-kokoro-resources/node:6"
19+ value: " gcr.io/cloud-devrel-kokoro-resources/node:6-user "
2020}
2121env_vars: {
2222 key: " TRAMPOLINE_BUILD_FILE"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"
1616# Configure the docker image for kokoro-trampoline.
1717env_vars: {
1818 key: " TRAMPOLINE_IMAGE"
19- value: " gcr.io/cloud-devrel-kokoro-resources/node:8"
19+ value: " gcr.io/cloud-devrel-kokoro-resources/node:8-user "
2020}
2121env_vars: {
2222 key: " TRAMPOLINE_BUILD_FILE"
You can’t perform that action at this time.
0 commit comments