@leverege/build-tools 2.18.0-beta.6 → 2.18.0-beta.7
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
package/src/decrypt-secrets
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
-
|
|
2
|
+
printf "\n_______STARTING_DECRYPT_SECRETS__________\n" # XXX
|
|
3
3
|
what_the_actual_fuck_you_fucking_fucks
|
|
4
4
|
|
|
5
5
|
display_usage() {
|
|
@@ -60,9 +60,9 @@ initialize_gcloud() {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
function decryptEnvToPipeline() {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
printf "------------- BitBucket Pipeline Detected -------------\n"
|
|
64
|
+
printf " GCLOUD_PROJECT [$GCLOUD_PROJECT]\n"
|
|
65
|
+
printf " GCLOUD_COMPUTE_ZONE [$GCLOUD_COMPUTE_ZONE]\n"
|
|
66
66
|
|
|
67
67
|
gcloud --quiet config set project ${GCLOUD_PROJECT}
|
|
68
68
|
gcloud --quiet config set compute/zone ${GCLOUD_COMPUTE_ZONE}
|
|
@@ -85,7 +85,7 @@ if [ "$1" == "-h" ]; then
|
|
|
85
85
|
exit 1
|
|
86
86
|
fi
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
printf "\nBITBUCKETCI=[$BITBUCKETCI] CIRCLECI=[$CIRCLECI]\n"
|
|
89
89
|
|
|
90
90
|
if [ "$BITBUCKETCI" == "true" ];
|
|
91
91
|
then
|
|
@@ -97,7 +97,7 @@ if [ "$CIRCLECI" == "true" ]; then
|
|
|
97
97
|
initialize_gcloud
|
|
98
98
|
fi
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
printf "\nXXXXXXXXXX SHOULD NOT BE HERE XXXXXXXXXX\n" && exit 0 # XXX
|
|
101
101
|
|
|
102
102
|
git_origin=`git config --get remote.origin.url`
|
|
103
103
|
|
|
@@ -108,7 +108,7 @@ else
|
|
|
108
108
|
fi
|
|
109
109
|
|
|
110
110
|
# Set project based on org name
|
|
111
|
-
printf "\
|
|
111
|
+
printf "\nSON OF A BITCH XXX - Detecting organization name...\n"
|
|
112
112
|
|
|
113
113
|
if [ "$git_orgname" = "leverege" ]; then
|
|
114
114
|
printf "\nUsing leverege\n\n"
|