Merge branch 'update-release-script' into 'main'

Update release tooling to allow for rc release that don't update all packages.

See merge request nvidia/container-toolkit/container-toolkit!188
This commit is contained in:
Evan Lezar 2022-07-07 14:33:27 +00:00
commit a4258277e1
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,3 @@
FROM centos:8 FROM quay.io/centos/centos:stream8
RUN yum install -y createrepo rpm-sign pinentry RUN yum install -y createrepo rpm-sign pinentry

View File

@ -116,8 +116,19 @@ function sync() {
return return
fi fi
mkdir -p ${dst} mkdir -p ${dst}
cp ${src}/libnvidia-container*.${pkg_type} ${dst}
cp ${src}/nvidia-container-toolkit*.${pkg_type} ${dst} for f in $(ls ${src}/libnvidia-container*.${pkg_type} ${src}/nvidia-container-toolkit*.${pkg_type}); do
df=${dst}/$(basename ${f})
df_stable=${df//"/experimental/"/"/stable/"}
if [[ -f "${df}" ]]; then
echo "${df} already exists; skipping"
elif [[ ${REPO} == "experimental" && -f ${df_stable} ]]; then
echo "${df_stable} already exists; skipping"
else
cp ${f} ${df}
fi
done
if [[ ${REPO} == "stable" ]]; then if [[ ${REPO} == "stable" ]]; then
cp ${src}/nvidia-container-runtime*.${pkg_type} ${dst} cp ${src}/nvidia-container-runtime*.${pkg_type} ${dst}
cp ${src}/nvidia-docker*.${pkg_type} ${dst} cp ${src}/nvidia-docker*.${pkg_type} ${dst}