diff --git a/install_icetray/Dockerfile_install b/install_icetray/Dockerfile_install index 7314d64..b762a13 100644 --- a/install_icetray/Dockerfile_install +++ b/install_icetray/Dockerfile_install @@ -23,7 +23,7 @@ RUN echo $VERSION RUN mkdir /usr/local/icetray_src WORKDIR /usr/local/icetray_src -RUN git init -b ${VERSION} && git config advice.detachedHead false +RUN git init && git checkout -b ${VERSION} && git config advice.detachedHead false RUN --mount=type=secret,id=GHTOKEN GHTOKEN=$(cat /run/secrets/GHTOKEN) && curl -sS -f -I -H "Authorization: token ${GHTOKEN}" https://api.github.com && \ git pull --depth 1 https://${GHTOKEN}@github.com/icecube/icetray.git ${VERSION} RUN echo ${VERSION} > /usr/local/icetray_src/version_tag