Created
June 19, 2018 16:57
-
-
Save limed/36cac79a80c24801f8f14fc1bc5a7e00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/nubis/files/nubis-ci-build b/nubis/files/nubis-ci-build | |
index 4d7c3e0..3b7fc59 100644 | |
--- a/nubis/files/nubis-ci-build | |
+++ b/nubis/files/nubis-ci-build | |
@@ -2,6 +2,14 @@ | |
set -e | |
+DEPLOY_ONLY=$(jq -r '.variables.deploy_only' nubis/builder/project.json) | |
+ | |
+# If there is a deploy_only variable don't do a build | |
+if [ ! -z "${DEPLOY_ONLY}" ] && [ "${DEPLOY_ONLY}" == "true" ]; then | |
+ echo "Deploy only, skipping build" | |
+ exit 0 | |
+fi | |
+ | |
NUBIS_ARENA=$(nubis-metadata NUBIS_ARENA) | |
ORIG_ALLOWED_TCP=$(consul kv get "nat/$NUBIS_ARENA/config/IptablesAllowTCP" 2>/dev/null || echo '[]') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment