Skip to content

Commit 595fcde

Browse files
committed
Increase retries of sync operations and increase wait between attempts.
1 parent ca24e9b commit 595fcde

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

entrypoint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CLOUDSMITH_REPO="${2}"
77
CLOUDSMITH_USERNAME="${3}"
88
export CLOUDSMITH_API_KEY="${4}"
99

10+
cloudsmith_push_args=(--sync-attempts 10 --wait-interval 5 --republish)
11+
1012
# required to make python 3 work with cloudsmith script
1113
export LC_ALL=C.UTF-8
1214
export LANG=C.UTF-8
@@ -22,11 +24,11 @@ function upload_rpm {
2224
pkg_rel=$(echo "${rev_filename}" | cut -d '.' -f3 | rev)
2325
release_ver="${pkg_rel:2}"
2426

25-
cloudsmith push rpm --republish "${CLOUDSMITH_REPO}/${distro}/${release_ver}" "${1}"
27+
cloudsmith push rpm "${cloudsmith_push_args[@]}" "${CLOUDSMITH_REPO}/${distro}/${release_ver}" "${1}"
2628
}
2729

2830
function upload_deb {
29-
cloudsmith push deb --republish "${CLOUDSMITH_REPO}/${2}/${3}" "${1}"
31+
cloudsmith push deb "${cloudsmith_push_args[@]}" "${CLOUDSMITH_REPO}/${2}/${3}" "${1}"
3032
}
3133

3234
function cloudsmith_upload {

0 commit comments

Comments
 (0)