Fix unset variable for docker build

This commit is contained in:
Tristan 2022-06-06 08:24:06 +01:00
parent da53e93ef4
commit 77fea45630
No known key found for this signature in database
GPG Key ID: BDDFC4A0651ACDE4

View File

@ -67,10 +67,12 @@ docker:
set -eu set -eu
export HAPROXY_VER="2.6" export HAPROXY_VER="2.6"
export DEBIAN_CODENAME="bullseye"
export JOB_TIMESTAMP="$(date -D '%Y-%m-%dT%H:%M:%S%Z' -d "$CI_JOB_STARTED_AT" +'%Y%m%d-%H%M')" export JOB_TIMESTAMP="$(date -D '%Y-%m-%dT%H:%M:%S%Z' -d "$CI_JOB_STARTED_AT" +'%Y%m%d-%H%M')"
echo "Building image with" echo "Building image with"
echo " -> haproxy version: 2.6" echo " -> haproxy version: $HAPROXY_VER"
echo " -> debian codename: $DEBIAN_CODENAME" echo " -> debian codename: $DEBIAN_CODENAME"
echo " -> git commit hash: $CI_COMMIT_SHORT_SHA" echo " -> git commit hash: $CI_COMMIT_SHORT_SHA"
echo " -> build timestamp: $JOB_TIMESTAMP" echo " -> build timestamp: $JOB_TIMESTAMP"