Pass CI_JOB_ID to docker container
This commit is contained in:
parent
c83813456a
commit
3110ae87e1
@ -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
|
||||
|
@ -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" .
|
||||
docker build --build-arg ci_job_id="${CI_JOB_ID}" --build-arg target="$target" -t "$tag_build" -f "$dockerfile" .
|
||||
|
Loading…
Reference in New Issue
Block a user