File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ clean:
240
240
#
241
241
# Example:
242
242
# make release
243
- official-release : build-rpms build-cross
243
+ official-release : build-cross build-rpms
244
244
hack/build-images.sh
245
245
.PHONY : official-release
246
246
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ os::build::internal::build_binaries() {
240
240
fi
241
241
242
242
if [[ " $platform " == " windows/amd64" ]]; then
243
- rm ${OS_ROOT} /cmd/oc/oc.syso
243
+ rm -f ${OS_ROOT} /cmd/oc/oc.syso
244
244
fi
245
245
246
246
for test in " ${tests[@]: +${tests[@]} } " ; do
@@ -261,6 +261,10 @@ readonly -f os::build::build_binaries
261
261
# Generates the .syso file used to add compile-time VERSIONINFO metadata to the
262
262
# Windows binary.
263
263
function os::build::generate_windows_versioninfo() {
264
+ if ! os::util::find::system_binary " goversioninfo" > /dev/null 2>&1 ; then
265
+ os::log::warning " No system binary 'goversioninfo' found, skipping version info for Windows builds"
266
+ return 0
267
+ fi
264
268
os::build::version::get_vars
265
269
local major=" ${OS_GIT_MAJOR} "
266
270
local minor=" ${OS_GIT_MINOR% +} "
Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ elif [[ "$( git rev-parse "${tag}" )" != "$( git rev-parse HEAD )" ]]; then
15
15
fi
16
16
commit=" $( git rev-parse ${tag} ) "
17
17
18
- # Ensure that the build is using the latest release image
19
- docker pull " ${OS_BUILD_ENV_IMAGE} "
18
+ # Ensure that the build is using the latest release image and base content
19
+ if [[ -z " ${OS_RELEASE_STALE} " ]]; then
20
+ docker pull " ${OS_BUILD_ENV_IMAGE} "
21
+ hack/build-base-images.sh
22
+ fi
20
23
21
- hack/build-base-images.sh
22
24
hack/env OS_GIT_COMMIT=" ${commit} " make official-release
23
25
OS_PUSH_ALWAYS=1 OS_PUSH_TAG=" ${tag} " OS_TAG=" " OS_PUSH_LOCAL=" 1" hack/push-release.sh
24
26
You can’t perform that action at this time.
0 commit comments