diff --git a/.cirrus.yml b/.cirrus.yml index 3df93b8..7cf585d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -21,7 +21,7 @@ env: # GCE project where images live IMAGE_PROJECT: "libpod-218412" # VM Image built in containers/automation_images - _BUILT_IMAGE_SUFFIX: "c6233039174893568" + _BUILT_IMAGE_SUFFIX: "c5032481331085312" FEDORA_CACHE_IMAGE_NAME: "fedora-${_BUILT_IMAGE_SUFFIX}" PRIOR_FEDORA_CACHE_IMAGE_NAME: "prior-fedora-${_BUILT_IMAGE_SUFFIX}" diff --git a/contrib/cirrus/lib.sh b/contrib/cirrus/lib.sh index a43ac41..ea86362 100755 --- a/contrib/cirrus/lib.sh +++ b/contrib/cirrus/lib.sh @@ -13,8 +13,12 @@ set -a _waserrexit=0 if [[ "$SHELLOPTS" =~ errexit ]]; then _waserrexit=1; fi set +e # Assumed in F33 for setting global vars -source /etc/profile -source /etc/environment +if [[ -r "/etc/automation_environment" ]]; then + source /etc/automation_environment +else # prior to automation library v2.0, this was necessary + source /etc/profile + source /etc/environment +fi if [[ -r "/etc/ci_environment" ]]; then source /etc/ci_environment; fi USER="$(whoami)" HOME="$(getent passwd $USER | cut -d : -f 6)" @@ -73,13 +77,6 @@ SECRET_ENV_RE='(IRCID)|(ACCOUNT)|(^GC[EP]..+)|(SSH)' # END Global export of all variables set +a -# It's like 'set -x' but only for one command at a time -showrun() { - echo '--------------------------------------------------' - echo '+ '$(printf " %q" "$@") > /dev/stderr - "$@" -} - # Remove all files (except conmon, and the cni-config) provided by the distro version. remove_packaged_podman_files() { echo "Removing packaged podman files to prevent conflicts with source build and testing." diff --git a/contrib/cirrus/setup.sh b/contrib/cirrus/setup.sh index 7083c08..d0ac3ce 100755 --- a/contrib/cirrus/setup.sh +++ b/contrib/cirrus/setup.sh @@ -4,6 +4,8 @@ set -eo pipefail source "$(dirname $0)/lib.sh" +show_env_vars + case "${OS_RELEASE_ID}" in fedora) echo "Installing necessary additional packages"