From d08be990efae84b426b0ea10b3ef78d0262e844c Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Wed, 10 Jul 2019 20:57:57 +0300 Subject: [PATCH] Skip uploading release versions of aptly to nightly repo This breaks releases, as two versions of the package with same version might end up in internal.aptly.info. --- upload-artifacts.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/upload-artifacts.sh b/upload-artifacts.sh index 74cbd2fc..c7bb6ee9 100644 --- a/upload-artifacts.sh +++ b/upload-artifacts.sh @@ -17,6 +17,11 @@ for file in $packages; do done if [[ "$1" = "nightly" ]]; then + if echo "$version" | grep -vq "+"; then + # skip nightly when on release tag + exit 0 + fi + aptly_repository=aptly-nightly aptly_published=s3:repo.aptly.info:./nightly