From 89757d43668537c93c39128c61036298886fb798 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 26 Dec 2023 05:08:21 +0100 Subject: [PATCH] [CI/CD] A more robust way of detecting the presence of a main version package. --- .drone.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.drone.yml b/.drone.yml index 88353906..ade11cbf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -403,6 +403,9 @@ steps: - cp "$GIT_DEB" "$POOL_PATH" # If main/all/Packages doesn't exist, then we should create the first main release + - | + [ $(ls "$APT_ROOT/pool/$DEB_VERSION/main/$${PKG_NAME}_$${VERSION}-"*"_all.deb" 2>/dev/null | wc -l) -eq 0 ] && export UPDATE_STABLE_PKG=1 + - export PKGURL="https://apt.platypush.tech/dists/$DEB_VERSION/main/all/Packages" - | [ -z "$UPDATE_STABLE_PKG" ] && @@ -495,6 +498,9 @@ steps: - cp "$GIT_DEB" "$POOL_PATH" # If main/all/Packages doesn't exist, then we should create the first main release + - | + [ $(ls "$APT_ROOT/pool/$DEB_VERSION/main/$${PKG_NAME}_$${VERSION}-"*"_all.deb" 2>/dev/null | wc -l) -eq 0 ] && export UPDATE_STABLE_PKG=1 + - export PKGURL="https://apt.platypush.tech/dists/$DEB_VERSION/main/all/Packages" - | [ -z "$UPDATE_STABLE_PKG" ] &&