diff --git a/synthtool/gcp/templates/node_library/.circleci/config.yml.j2 b/synthtool/gcp/templates/node_library/.circleci/config.yml similarity index 93% rename from synthtool/gcp/templates/node_library/.circleci/config.yml.j2 rename to synthtool/gcp/templates/node_library/.circleci/config.yml index 80dcf7e67..f70f11bb8 100644 --- a/synthtool/gcp/templates/node_library/.circleci/config.yml.j2 +++ b/synthtool/gcp/templates/node_library/.circleci/config.yml @@ -149,9 +149,11 @@ jobs: name: Decrypt credentials. command: | if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then - openssl aes-256-cbc -d -in .circleci/key.json.enc \ - -out .circleci/key.json \ - -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" + for encrypted_key in .circleci/*.json.enc; do + openssl aes-256-cbc -d -in $encrypted_key + -out $(echo $encrypted_key | sed 's/\.enc//') + -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" + done fi - run: *npm_install_and_link - run: @@ -163,7 +165,7 @@ jobs: name: Remove unencrypted key. command: | if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then - rm .circleci/key.json + rm .circleci/*.json fi when: always publish_npm: