Fix haproxy short version computation in Docker job

This commit is contained in:
Tristan 2022-06-11 12:04:26 +01:00
parent e181760ecb
commit 314f42f618
No known key found for this signature in database
GPG Key ID: BDDFC4A0651ACDE4
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ docker:
export JOB_TIMESTAMP="$(date -D '%Y-%m-%dT%H:%M:%S%Z' -d "$CI_JOB_STARTED_AT" +'%Y%m%d-%H%M')"
export HAPROXY_VERSION="$(cat haproxy/Makefile | head -n1 | cut -d'=' -f2 | tr -d ' ')"
export HAPROXY_SHORTVER="$(echo "$(HAPROXY_VERSION)" | cut -d'.' -f1-2)"
export HAPROXY_SHORTVER="$(echo "${HAPROXY_VERSION}" | cut -d'.' -f1-2)"
echo "Building image with"
echo " -> haproxy version: $HAPROXY_VERSION ($HAPROXY_SHORTVER)"
echo " -> debian codename: $DEBIAN_CODENAME"