From a3a161f74e366d45a9ed834c98eb98815b5a5d08 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 74cbd2fc4..c7bb6ee97 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