Attempting to build the lastest tag instead of a hard-coded one

This commit is contained in:
anon8675309 2021-06-19 15:01:17 -05:00
parent 0edc91ffca
commit 1096fa3f87
2 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,7 @@ deb:
tags: tags:
- docker - docker
script: 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: artifacts:
paths: paths:
- '*.deb' - '*.deb'

View File

@ -118,8 +118,11 @@ else
fi; fi;
if [ "$SNAPSHOT" == "stable" ]; then if [ "$SNAPSHOT" == "stable" ]; then
if [ "$BRANCH" == "" ]; 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)`; BRANCH=`git describe --tags $(git rev-list --tags --max-count=1)`;
echo "BRANCH = $BRANCH"
if [ "$BRANCH" == "" ]; then if [ "$BRANCH" == "" ]; then
echo "Unable to determine latest stable branch!" echo "Unable to determine latest stable branch!"
exit 0; exit 0;