Commit ba1de7f9 authored by Louis Gesbert's avatar Louis Gesbert
Browse files

Hack to force a fetch of opam repos on every image build

Also, remove old workaround for /tmp bug
parent 9d78592a
Pipeline #10909 passed with stages
in 14 seconds
......@@ -34,5 +34,6 @@ USER ocaml
WORKDIR /home/ocaml
ENV OPAMYES 1
RUN touch /tmp/foo
ARG LAST_REPO_UPDATE=0
RUN echo "LAST_REPO_UPDATE=${LAST_REPO_UPDATE}"
RUN ["/usr/local/bin/opam", "init", "-a", "--bare", "--disable-sandboxing"]
......@@ -19,6 +19,7 @@ ocaml-image-%OCAML_VERSION%:
--context=$CI_PROJECT_DIR
--dockerfile=$CI_PROJECT_DIR/Dockerfile
--build-arg=OCAML_VERSION=$OCAML_VERSION
--build-arg=LAST_REPO_UPDATE=$(date +%s)
--destination=$CI_REGISTRY_IMAGE:${OCAML_VERSION%.*}
$(if [ "$OCAML_VERSION" = "$LATEST_OCAML_VERSION" ]; then
echo "--destination=$CI_REGISTRY_IMAGE:latest";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment