diff options
author | Chris Evich <cevich@redhat.com> | 2019-08-23 11:11:26 -0400 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2019-09-24 15:13:40 -0400 |
commit | 601052b3867c024df04d9905187104f09c22489b (patch) | |
tree | 4440bce9dc053000d8b8c08e8683928a0e2602a9 /contrib/cirrus/build_release.sh | |
parent | 1dfac0e776a36ae682b6600ad8edf3d118638eeb (diff) | |
download | podman-601052b3867c024df04d9905187104f09c22489b.tar.gz podman-601052b3867c024df04d9905187104f09c22489b.tar.bz2 podman-601052b3867c024df04d9905187104f09c22489b.zip |
Cirrus: Upload windows MSI release file
Signed-off-by: Chris Evich <cevich@redhat.com>
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 |