Skip to content

Commit

Permalink
Merge pull request containers#3931 from cevich/f36_update
Browse files Browse the repository at this point in the history
Cirrus: Update CI VMs to F36
  • Loading branch information
openshift-merge-robot committed Apr 28, 2022
2 parents c45bfcc + cc5e80f commit 3408e25
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .cirrus.yml
Expand Up @@ -27,11 +27,11 @@ env:
####
# GCE project where images live
IMAGE_PROJECT: "libpod-218412"
FEDORA_NAME: "fedora-35"
PRIOR_FEDORA_NAME: "fedora-34"
FEDORA_NAME: "fedora-36"
PRIOR_FEDORA_NAME: "fedora-35"
UBUNTU_NAME: "ubuntu-2110"

IMAGE_SUFFIX: "c4764556961513472"
IMAGE_SUFFIX: "c4955393725038592"
FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"
PRIOR_FEDORA_CACHE_IMAGE_NAME: "prior-fedora-${IMAGE_SUFFIX}"
UBUNTU_CACHE_IMAGE_NAME: "ubuntu-${IMAGE_SUFFIX}"
Expand Down
1 change: 0 additions & 1 deletion contrib/cirrus/lib.sh
Expand Up @@ -180,7 +180,6 @@ in_podman() {
echo "$envarg" | tee -a $envfile | indent
done
showrun podman run -i --name="$IN_PODMAN_NAME" \
--net=host \
--net="container:registry" \
--security-opt=label=disable \
--security-opt=seccomp=unconfined \
Expand Down
3 changes: 3 additions & 0 deletions contrib/cirrus/logcollector.sh
Expand Up @@ -39,6 +39,9 @@ case $1 in
)
case $OS_RELEASE_ID in
fedora*)
if [[ "$OS_RELEASE_VER" -ge 36 ]]; then
PKG_NAMES+=(aardvark-dns netavark)
fi
PKG_LST_CMD='rpm -q --qf=%{N}-%{V}-%{R}-%{ARCH}\n'
;;
ubuntu*)
Expand Down
8 changes: 7 additions & 1 deletion contrib/cirrus/setup.sh
Expand Up @@ -10,7 +10,13 @@ source $(dirname $0)/lib.sh

req_env_vars OS_RELEASE_ID OS_RELEASE_VER GOSRC IN_PODMAN_IMAGE

echo "Setting up $OS_RELEASE_ID $OS_RELEASE_VER"
msg "Disabling git repository owner-check system-wide."
# Newer versions of git bark if repo. files are unexpectedly owned.
# This mainly affects rootless and containerized testing. But
# the testing environment is disposable, so we don't care.=
git config --system --add safe.directory $GOSRC

msg "Setting up $OS_RELEASE_ID $OS_RELEASE_VER"
cd $GOSRC
case "$OS_RELEASE_ID" in
fedora)
Expand Down
4 changes: 4 additions & 0 deletions pkg/formats/templates.go
Expand Up @@ -20,6 +20,10 @@ var basicFunctions = template.FuncMap{
},
"split": strings.Split,
"join": strings.Join,
// strings.Title is deprecated since go 1.18
// However for our use case it is still fine. The recommended replacement
// is adding about 400kb binary size so lets keep using this for now.
//nolint:staticcheck
"title": strings.Title,
"lower": strings.ToLower,
"upper": strings.ToUpper,
Expand Down

0 comments on commit 3408e25

Please sign in to comment.