Skip to content

Commit fcfeb1d

Browse files
authored
Merge pull request #13 from gizmoguy/rocky-alma
Upload rocky and alma packages as 'el' packages
2 parents b888b30 + 27161be commit fcfeb1d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

entrypoint.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)