diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-09-27 17:10:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-27 17:10:10 +0200 |
commit | 85fef6a0baf52275564f6c977b316cd2822de4e8 (patch) | |
tree | e61e2401750484464159435c6a0cdc51d6f15b35 /contrib/cirrus/build_release.sh | |
parent | 851e3775d5d2e605bcb612054a94ac6de005f834 (diff) | |
parent | 601052b3867c024df04d9905187104f09c22489b (diff) | |
download | podman-85fef6a0baf52275564f6c977b316cd2822de4e8.tar.gz podman-85fef6a0baf52275564f6c977b316cd2822de4e8.tar.bz2 podman-85fef6a0baf52275564f6c977b316cd2822de4e8.zip |
Merge pull request #3879 from cevich/zip_to_msi
Automate production of MSI release files
Diffstat (limited to 'contrib/cirrus/build_release.sh')
-rwxr-xr-x | contrib/cirrus/build_release.sh | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/contrib/cirrus/build_release.sh b/contrib/cirrus/build_release.sh index 287643f47..07db88f81 100755 --- a/contrib/cirrus/build_release.sh +++ b/contrib/cirrus/build_release.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + source $(dirname $0)/lib.sh req_env_var TEST_REMOTE_CLIENT OS_RELEASE_ID GOSRC @@ -13,18 +15,20 @@ fi if [[ -n "$CROSS_PLATFORM" ]] then + # Will fail if $CROSS_PLATFORM is unsupported cross-compile $GOOS value + make podman-remote-${CROSS_PLATFORM}-release + echo "Compiling podman-remote release archive for ${CROSS_PLATFORM}" - case "$CROSS_PLATFORM" in - linux) ;& - windows) ;& - darwin) - make podman-remote-${CROSS_PLATFORM}-release - ;; - *) - die 1 "Unknown/unsupported cross-compile platform '$CROSS_PLATFORM'" - ;; - esac + if [[ "$CROSS_PLATFORM" == "windows" ]] + then + # TODO: Remove next line, part of VM images next time they're built. + dnf install -y libmsi1 msitools pandoc + make podman.msi + fi else echo "Compiling release archive for $OS_RELEASE_ID" make podman-release fi + +echo "Preserving build details for later use." +mv -v release.txt actual_release.txt # Another 'make' during testing could overwrite it |