File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,14 +62,18 @@ function cloudsmith_upload {
6262 release=$2
6363 pkg_fullpath=$3
6464
65+ releasemajor=` echo ${release} | cut -d " ." -f 1`
66+
6567 if [[ ${distro} =~ centos ]]; then
6668 upload_rpm " centos" " ${release} " " ${pkg_fullpath} "
6769 elif [[ ${distro} =~ fedora ]]; then
6870 upload_rpm " fedora" " ${release} " " ${pkg_fullpath} "
71+ elif [[ ${distro} =~ el ]]; then
72+ upload_rpm " el" " ${releasemajor} " " ${pkg_fullpath} "
6973 elif [[ ${distro} =~ rocky ]]; then
70- upload_rpm " rocky " " ${release } " " ${pkg_fullpath} "
74+ upload_rpm " el " " ${releasemajor } " " ${pkg_fullpath} "
7175 elif [[ ${distro} =~ alma ]]; then
72- upload_rpm " almalinux " " ${release } " " ${pkg_fullpath} "
76+ upload_rpm " el " " ${releasemajor } " " ${pkg_fullpath} "
7377 else
7478 upload_deb " ${distro} " " ${release} " " ${pkg_fullpath} "
7579 fi
You can’t perform that action at this time.
0 commit comments