diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-08-29 06:56:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 06:56:43 -0700 |
commit | ab5f52c0d2ce617f875ef69c9ae67381841a6514 (patch) | |
tree | ccc70cbe33c74a1f55187d3ff0bc05f27a6ffa92 /contrib/cirrus/build_release.sh | |
parent | 1eb6b271bb1b197c214b9cf560c362a6aeb402da (diff) | |
parent | 370b1a887cbf6db8ac893c39118cf8c6c2fd663c (diff) | |
download | podman-ab5f52c0d2ce617f875ef69c9ae67381841a6514.tar.gz podman-ab5f52c0d2ce617f875ef69c9ae67381841a6514.tar.bz2 podman-ab5f52c0d2ce617f875ef69c9ae67381841a6514.zip |
Merge pull request #3710 from cevich/release_redo
Release redo
Diffstat (limited to 'contrib/cirrus/build_release.sh')
-rwxr-xr-x | contrib/cirrus/build_release.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/cirrus/build_release.sh b/contrib/cirrus/build_release.sh new file mode 100755 index 000000000..287643f47 --- /dev/null +++ b/contrib/cirrus/build_release.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +source $(dirname $0)/lib.sh + +req_env_var TEST_REMOTE_CLIENT OS_RELEASE_ID GOSRC + +cd $GOSRC + +if [[ "$TEST_REMOTE_CLIENT" == "true" ]] && [[ -z "$CROSS_PLATFORM" ]] +then + CROSS_PLATFORM=linux +fi + +if [[ -n "$CROSS_PLATFORM" ]] +then + 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 +else + echo "Compiling release archive for $OS_RELEASE_ID" + make podman-release +fi |