From d4c2c99de4d28d8da2a79a4d05bccbc735053f20 Mon Sep 17 00:00:00 2001 From: anon8675309 Date: Sat, 19 Jun 2021 15:01:17 -0500 Subject: [PATCH] Attempting to build the lastest tag instead of a hard-coded one --- .gitlab-ci.yml | 2 +- utils/do_debian_package.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 95eb8f483..f5de71b8b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ deb: tags: - docker script: - - yes "" | ./utils/do_debian_package.sh --snapshot=stable --branch=1.36.1 --type=binary --interactive=no --dput=no --debbuild-extra=--no-sign || true + - yes "" | ./utils/do_debian_package.sh --snapshot=stable --type=binary --interactive=no --dput=no --debbuild-extra=--no-sign || true artifacts: paths: - '*.deb' diff --git a/utils/do_debian_package.sh b/utils/do_debian_package.sh index 7f29cf926..dd931c5c5 100755 --- a/utils/do_debian_package.sh +++ b/utils/do_debian_package.sh @@ -118,8 +118,11 @@ else fi; if [ "$SNAPSHOT" == "stable" ]; then if [ "$BRANCH" == "" ]; then - #REV=$(git rev-list --tags --max-count=1) + echo "About to get the hash of the most recent tag" + REV=$(git rev-list --tags --max-count=1) + echo "REV = $REV" BRANCH=`git describe --tags $(git rev-list --tags --max-count=1)`; + echo "BRANCH = $BRANCH" if [ "$BRANCH" == "" ]; then echo "Unable to determine latest stable branch!" exit 0;