We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a77b4c1 commit e5b7e5dCopy full SHA for e5b7e5d
hack/deploy_vars
@@ -20,9 +20,13 @@ else
20
fi
21
22
# Extract image repository and tag from IMG variable
23
-IMAGE_REPO=$(echo "${IMG}" | cut -d: -f1)
24
-IMAGE_TAG=$(echo "${IMG}" | cut -d: -f2)
25
-
+if [[ "${IMG}" == *:* ]]; then
+ IMAGE_TAG="${IMG##*:}" # everything after the last colon
+ IMAGE_REPO="${IMG%:*}" # everything before the last colon
26
+else # no tag specified
27
+ IMAGE_TAG="latest"
28
+ IMAGE_REPO="${IMG}"
29
+fi
30
# Export all variables for use in scripts
31
export IP
32
export BASEDOMAIN
0 commit comments