Skip to content

Commit 027edcf

Browse files
authored
fix: add repo_package_sync for centos (api7#309)
1 parent c9e2194 commit 027edcf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/publish-rpm.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ repo_clone)
152152
func_repo_clone "${VAR_COS_BUCKET_REPO}" "redhat" /tmp/redhat
153153
;;
154154
repo_package_sync)
155+
VAR_REPO_MAJOR_VER=(7 8)
156+
for i in "${VAR_REPO_MAJOR_VER[@]}"; do
157+
find "${VAR_RPM_WORKBENCH_DIR}" -type f -name "*el${i}.${ARCH}.rpm" \
158+
-exec echo "repo sync for: {}" \; \
159+
-exec cp -a {} /tmp/centos/"${i}"/${ARCH} \;
160+
done
155161
find "${VAR_RPM_WORKBENCH_DIR}" -type f -name "*ubi8.6.${ARCH}.rpm" \
156162
-exec echo "repo sync for: {}" \; \
157163
-exec cp -a {} /tmp/redhat/8/${ARCH} \;

0 commit comments

Comments
 (0)