@leverege/build-tools 2.18.0-beta.4 → 2.18.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.18.0-beta.4",
3
+ "version": "2.18.0-beta.5",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -1,4 +1,5 @@
1
1
  #!/bin/bash
2
+ echo "_______STARTING_DECRYPT_SECRETS__________" # XXX
2
3
  display_usage() {
3
4
  echo "This script decrypts files using Google KMS."
4
5
  echo -e "\nInputs: .env.enc and secrets.tar.gz.enc (if it exists) \n"
@@ -58,8 +59,8 @@ initialize_gcloud() {
58
59
 
59
60
  function decryptEnvToPipeline() {
60
61
  echo "------------- BitBucket Pipeline Detected -------------"
61
- printf " GCLOUD_PROJECT [$GCLOUD_PROJECT]\n"
62
- printf " GCLOUD_COMPUTE_ZONE [$GCLOUD_COMPUTE_ZONE]\n"
62
+ echo " GCLOUD_PROJECT [$GCLOUD_PROJECT]"
63
+ echo " GCLOUD_COMPUTE_ZONE [$GCLOUD_COMPUTE_ZONE]"
63
64
 
64
65
  gcloud --quiet config set project ${GCLOUD_PROJECT}
65
66
  gcloud --quiet config set compute/zone ${GCLOUD_COMPUTE_ZONE}
@@ -82,7 +83,7 @@ if [ "$1" == "-h" ]; then
82
83
  exit 1
83
84
  fi
84
85
 
85
- printf "BITBUCKETCI=[$BITBUCKETCI] CIRCLECI=[$CIRCLECI]\n"
86
+ echo "BITBUCKETCI=[$BITBUCKETCI] CIRCLECI=[$CIRCLECI]"
86
87
 
87
88
  if [ "$BITBUCKETCI" == "true" ];
88
89
  then
@@ -94,6 +95,8 @@ if [ "$CIRCLECI" == "true" ]; then
94
95
  initialize_gcloud
95
96
  fi
96
97
 
98
+ echo "XXXXXXXXXX SHOULD NOT BE HERE XXXXXXXXXX" && exit 0 # XXX
99
+
97
100
  git_origin=`git config --get remote.origin.url`
98
101
 
99
102
  if [[ $git_origin = https* ]]; then