From e8a337752ab7b45eed1c043971aa409edd397d13 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 25 Dec 2023 15:13:34 +0100 Subject: [PATCH] [CI/CD] Print names of generated deb packages. --- .drone.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index feb3f1828..525cb5000 100644 --- a/.drone.yml +++ b/.drone.yml @@ -375,6 +375,7 @@ steps: - export GIT_VERSION="$VERSION-$(( $(git log --pretty=oneline HEAD...v$VERSION | wc -l) + 1))" - export GIT_BUILD_DIR="$WORKDIR/$${PKG_NAME}_$${GIT_VERSION}_all" - export GIT_DEB="$WORKDIR/$${PKG_NAME}_$${GIT_VERSION}_all.deb" + - export POOL_PATH="$APT_ROOT/pool/$DEB_VERSION/dev" - echo "--- Building git package" - pip install --prefix="$GIT_BUILD_DIR/usr" --no-cache --no-deps . @@ -397,9 +398,9 @@ steps: EOF - dpkg --build "$GIT_BUILD_DIR" - - echo "--- Copying package to the repo" - - mkdir -p "$APT_ROOT/pool/$DEB_VERSION/dev" - - cp "$GIT_DEB" "$APT_ROOT/pool/$DEB_VERSION/dev/" + - echo "--- Copying $GIT_DEB to $POOL_PATH" + - mkdir -p "$POOL_PATH" + - cp "$GIT_DEB" "$POOL_PATH" # If main/all/Packages doesn't exist, then we should create the first main release - export PKGURL="https://apt.platypush.tech/dists/$DEB_VERSION/main/all/Packages" @@ -466,6 +467,7 @@ steps: - export GIT_VERSION="$VERSION-$(( $(git log --pretty=oneline HEAD...v$VERSION | wc -l) + 1))" - export GIT_BUILD_DIR="$WORKDIR/$${PKG_NAME}_$${GIT_VERSION}_all" - export GIT_DEB="$WORKDIR/$${PKG_NAME}_$${GIT_VERSION}_all.deb" + - export POOL_PATH="$APT_ROOT/pool/$DEB_VERSION/dev" - echo "--- Building git package" - pip install --prefix="$GIT_BUILD_DIR/usr" --no-cache --no-deps . @@ -488,9 +490,9 @@ steps: EOF - dpkg --build "$GIT_BUILD_DIR" - - echo "--- Copying package to the repo" - - mkdir -p "$APT_ROOT/pool/$DEB_VERSION/dev" - - cp "$GIT_DEB" "$APT_ROOT/pool/$DEB_VERSION/dev/" + - echo "--- Copying $GIT_DEB to $POOL_PATH" + - mkdir -p "$POOL_PATH" + - cp "$GIT_DEB" "$POOL_PATH" # If main/all/Packages doesn't exist, then we should create the first main release - export PKGURL="https://apt.platypush.tech/dists/$DEB_VERSION/main/all/Packages"