From ec99230c63fed41df180ab691459355d419aa048 Mon Sep 17 00:00:00 2001 From: Tom Jack Date: Tue, 5 May 2020 20:25:46 +0000 Subject: [PATCH] Pass version info through to docker --- scripts/distribution/generic/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/distribution/generic/build.sh b/scripts/distribution/generic/build.sh index 968f55a21..f39fb2141 100755 --- a/scripts/distribution/generic/build.sh +++ b/scripts/distribution/generic/build.sh @@ -10,4 +10,9 @@ dockerfile="./docker/distribution/generic/build.Dockerfile" echo "Building LIGO for $target" echo "Using Dockerfile: $dockerfile" echo "Tagging as: $tag_build\n" -docker build --build-arg ci_job_id="${CI_JOB_ID}" --build-arg target="$target" -t "$tag_build" -f "$dockerfile" . +docker build \ + --build-arg ci_job_id="${CI_JOB_ID}" \ + --build-arg ci_commit_sha="${CI_COMMIT_SHA}" \ + --build-arg commit_date="${COMMIT_DATE}" \ + --build-arg target="$target" \ + -t "$tag_build" -f "$dockerfile" .