unoverse 0.1.56 → 0.1.58
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.
- package/operator/lib/deploy.sh +15 -7
- package/package.json +1 -1
package/operator/lib/deploy.sh
CHANGED
|
@@ -35,12 +35,18 @@ cmd_deploy() {
|
|
|
35
35
|
pick_option "DigitalOcean" "AWS"
|
|
36
36
|
[ "$PICKED" = "1" ] && cloud=aws || cloud=digitalocean
|
|
37
37
|
echo ""
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
# An existing tfvars is PROGRESS, not a conflict: the previous run wrote it. Only
|
|
39
|
+
# a missing file needs the ground; either way the flow continues below.
|
|
40
|
+
if [ -f "$ROOT/infra/$cloud/terraform.tfvars" ]; then
|
|
41
|
+
ok "Using your existing infra/$cloud/terraform.tfvars"
|
|
42
|
+
else
|
|
43
|
+
cmd_ground "$([ "$cloud" = "aws" ] && echo aws || echo do)" || {
|
|
44
|
+
echo ""
|
|
45
|
+
info "Once that is sorted, run ${BOLD}unoverse deploy${NC} again. It picks up right here."
|
|
46
|
+
echo ""
|
|
47
|
+
exit 1
|
|
48
|
+
}
|
|
49
|
+
fi
|
|
44
50
|
echo ""
|
|
45
51
|
ok "Your $cloud ground is prefilled ${DIM}(infra/$cloud/terraform.tfvars)${NC}"
|
|
46
52
|
|
|
@@ -78,7 +84,9 @@ cmd_deploy() {
|
|
|
78
84
|
_tf_fill auth_issuer AUTH_ISSUER "AUTH_ISSUER"
|
|
79
85
|
_tf_fill auth_client_id AUTH_CLIENT_ID "AUTH_CLIENT_ID"
|
|
80
86
|
|
|
81
|
-
|
|
87
|
+
# VALUES only: the file's own header comment says the word FILL_ME, and matching
|
|
88
|
+
# it declared a complete file blank.
|
|
89
|
+
if grep -qE '=[[:space:]]*"FILL_ME"' "$tfv" 2>/dev/null; then
|
|
82
90
|
echo ""
|
|
83
91
|
warn "Some values are still blank in ${BOLD}infra/$cloud/terraform.tfvars${NC} — fill them, then:"
|
|
84
92
|
info " cd infra/$cloud && terraform init && terraform apply"
|
package/package.json
CHANGED