Pass version info through to docker
This commit is contained in:
parent
288e6646eb
commit
ec99230c63
@ -10,4 +10,9 @@ dockerfile="./docker/distribution/generic/build.Dockerfile"
|
|||||||
echo "Building LIGO for $target"
|
echo "Building LIGO for $target"
|
||||||
echo "Using Dockerfile: $dockerfile"
|
echo "Using Dockerfile: $dockerfile"
|
||||||
echo "Tagging as: $tag_build\n"
|
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" .
|
||||||
|
Loading…
Reference in New Issue
Block a user