diff --git a/docker/distribution/generic/build.Dockerfile b/docker/distribution/generic/build.Dockerfile index 0e072f10c..f6c9358e9 100644 --- a/docker/distribution/generic/build.Dockerfile +++ b/docker/distribution/generic/build.Dockerfile @@ -1,6 +1,9 @@ ARG target FROM ocaml/opam2:${target} +ARG ci_job_id +ENV CI_JOB_ID=$ci_job_id + RUN opam switch 4.07 && eval $(opam env) USER root diff --git a/scripts/distribution/generic/build.sh b/scripts/distribution/generic/build.sh index 7f4a89e9a..49aba15e1 100755 --- a/scripts/distribution/generic/build.sh +++ b/scripts/distribution/generic/build.sh @@ -8,4 +8,4 @@ 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 target="$target" -t "$tag_build" -f "$dockerfile" . \ No newline at end of file +docker build --build-arg ci_job_id="${CI_JOB_ID}" --build-arg target="$target" -t "$tag_build" -f "$dockerfile" .