@@ -82,17 +82,25 @@ os::build::build_binaries "${OS_CROSS_COMPILE_TARGETS[@]}"
82
82
OS_BUILD_PLATFORMS=(" ${test_platforms[@]+" ${test_platforms[@]} " } " )
83
83
os::build::build_binaries " ${OS_TEST_TARGETS[@]} "
84
84
85
- # Make the primary client/server release.
86
- OS_BUILD_PLATFORMS=(" ${platforms[@]+" ${platforms[@]} " } " )
87
- OS_RELEASE_ARCHIVE=" openshift-origin" \
88
- os::build::place_bins " ${OS_CROSS_COMPILE_BINARIES[@]} "
89
-
90
- # Make the image binaries release.
91
- OS_BUILD_PLATFORMS=(" ${image_platforms[@]+" ${image_platforms[@]} " } " )
92
- OS_RELEASE_ARCHIVE=" openshift-origin-image" \
93
- os::build::place_bins " ${OS_IMAGE_COMPILE_BINARIES[@]} "
94
-
95
- os::build::release_sha
85
+ if [[ " ${OS_BUILD_RELEASE_ARCHIVES-} " != " n" ]]; then
86
+ # Make the primary client/server release.
87
+ OS_BUILD_PLATFORMS=(" ${platforms[@]+" ${platforms[@]} " } " )
88
+ OS_RELEASE_ARCHIVE=" openshift-origin" \
89
+ os::build::place_bins " ${OS_CROSS_COMPILE_BINARIES[@]} "
90
+
91
+ # Make the image binaries release.
92
+ OS_BUILD_PLATFORMS=(" ${image_platforms[@]+" ${image_platforms[@]} " } " )
93
+ OS_RELEASE_ARCHIVE=" openshift-origin-image" \
94
+ os::build::place_bins " ${OS_IMAGE_COMPILE_BINARIES[@]} "
95
+
96
+ os::build::release_sha
97
+ else
98
+ # Place binaries only
99
+ OS_BUILD_PLATFORMS=(" ${platforms[@]+" ${platforms[@]} " } " ) \
100
+ os::build::place_bins " ${OS_CROSS_COMPILE_BINARIES[@]} "
101
+ OS_BUILD_PLATFORMS=(" ${image_platforms[@]+" ${image_platforms[@]} " } " ) \
102
+ os::build::place_bins " ${OS_IMAGE_COMPILE_BINARIES[@]} "
103
+ fi
96
104
97
105
if [[ " ${OS_GIT_TREE_STATE:- dirty} " == " clean" ]]; then
98
106
# only when we are building from a clean state can we claim to
0 commit comments