summaryrefslogtreecommitdiff
path: root/contrib/cirrus/setup_environment.sh
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2022-05-10 10:22:01 -0400
committerChris Evich <cevich@redhat.com>2022-05-10 10:22:01 -0400
commitc1656e2ee5347535f1b33e0f0a710abb5ea551c9 (patch)
treee2fa34a35a93aa89eb5e2c281fec043239d6bdb0 /contrib/cirrus/setup_environment.sh
parent18713f589c1ed9144d873f2656f2067ebf6f3ba2 (diff)
downloadpodman-c1656e2ee5347535f1b33e0f0a710abb5ea551c9.tar.gz
podman-c1656e2ee5347535f1b33e0f0a710abb5ea551c9.tar.bz2
podman-c1656e2ee5347535f1b33e0f0a710abb5ea551c9.zip
Cirrus: Guarantee $DEST_BRANCH is passed through
There are several runtime contexts (rootless and container) where `$DEST_BRANCH` is needed but was not supplied. A prior commit (c4865767171b) removed the default value, `main` which was being set incorrectly when CI ran on release branches. Fix this by ensuring the variable is non-empty upon entry to `setup_environment.sh`, then ensure it gets passed through to child environments by way of the `/etc/ci_environment` file. This will maintain compatibility with both CI and `hack/get_ci_vm.sh` use. Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/setup_environment.sh')
-rwxr-xr-xcontrib/cirrus/setup_environment.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cirrus/setup_environment.sh b/contrib/cirrus/setup_environment.sh
index e3eb46783..e8aabe79d 100755
--- a/contrib/cirrus/setup_environment.sh
+++ b/contrib/cirrus/setup_environment.sh
@@ -25,7 +25,7 @@ msg "************************************************************"
show_env_vars
req_env_vars USER HOME GOSRC SCRIPT_BASE TEST_FLAVOR TEST_ENVIRON \
- PODBIN_NAME PRIV_NAME DISTRO_NV
+ PODBIN_NAME PRIV_NAME DISTRO_NV DEST_BRANCH
# Verify basic dependencies
for depbin in go rsync unzip sha256sum curl make python3 git