Skip to content

Commit c0fff8e

Browse files
committed
Updated push and added comments
1 parent 160c788 commit c0fff8e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

push.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,37 @@ set -e
55
echo "Install dependencies"
66
sudo gem install package_cloud
77

8+
# List of RPM distributions to push to
89
RPM_DSTS="sles/11.4 sles/12.0 sles/12.1 sles/12.2
910
opensuse/13.1 opensuse/13.2 opensuse/42.1 opensuse/42.2
1011
fedora/20 fedora/21 fedora/22 fedora/23 fedora/24 fedora/25 fedora/26 fedora/27 fedora/28
1112
el/5 el/6 el/7 el/8"
1213

14+
# List of DEB distributions to push to
1315
DEB_DSTS="debian/wheezy debian/jessie debian/stretch debian/buster
1416
ubuntu/trusty ubuntu/utopic ubuntu/vivid ubuntu/wily ubuntu/xenial ubuntu/yakkety ubuntu/zesty ubuntu/artful ubuntu/bionic ubuntu/disco ubuntu/focal ubuntu/jammy
1517
raspbian/wheezy raspbian/jessie raspbian/stretch raspbian/buster"
1618

1719

1820
echo "PACKAGECLOUD_REPO=${PACKAGECLOUD_REPO}"
19-
# echo "PACKAGECLOUD_DISTRIB=${PACKAGECLOUD_DISTRIB}"
2021
echo "DEB_PACKAGE__NAME=${DEB_PACKAGE_NAME}"
2122
echo "RPM_PACKAGE_NAME=${RPM_PACKAGE_NAME}"
2223

2324
UPLOAD_PATH="${PACKAGECLOUD_USERNAME}/${PACKAGECLOUD_REPO}"
2425

25-
26+
# If a DEB package is specified, it loops through all the DEB distors and uploads them to packagecloud
2627
if [ -n "${DEB_PACKAGE_NAME}" ]; then
2728
for DST in ${DEB_DSTS[@]}; do
2829
echo "Uploading ${DEB_PACKAGE_NAME} to $DST"
2930
package_cloud push ${UPLOAD_PATH}/${DST} ${DEB_PACKAGE_NAME} --skip-errors
3031
done
3132
fi
3233

34+
# If a RPM package is specified, it loops through all the RPM distros and uploads them to packagecloud
3335
if [ -n "${RPM_PACKAGE_NAME}" ]; then
3436
for DST in ${RPM_DSTS[@]}; do
3537
echo "Uploading ${RPM_PACKAGE_NAME} to $DST"
3638
package_cloud push ${UPLOAD_PATH}/${DST} ${RPM_PACKAGE_NAME} --skip-errors
3739
done
3840
fi
39-
# if [ -n "${PACKAGECLOUD_DISTRIB}" ]; then
40-
# UPLOAD_PATH="${UPLOAD_PATH}/${PACKAGECLOUD_DISTRIB}"
41-
# fi
4241

43-
# echo "Deploying package: ${PACKAGE_NAME}"
44-
# echo "To repository: ${UPLOAD_PATH}"
45-
# package_cloud push ${UPLOAD_PATH} ${PACKAGE_NAME}

0 commit comments

Comments
 (0)