Skip to content

Commit

Permalink
fix git clone command for release (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
GernotMaier committed Feb 1, 2024
1 parent 93c1d6d commit 0c61a3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docker/Dockerfile-prod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ RUN microdnf update -y && microdnf install -y \
python3.11-devel && \
microdnf clean all

RUN git clone -b $BUILD_BRANCH https://github.com/gammasim/simtools.git --depth 1
RUN BUILD_BRANCH=$(echo $BUILD_BRANCH | sed 's#refs/tags/##') && \
git clone -b $BUILD_BRANCH https://github.com/gammasim/simtools.git --depth 1
RUN cd /workdir/ && \
python3.11 -m venv env && \
source env/bin/activate && \
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile-simtelarray
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From almalinux as build_image
FROM almalinux as build_image
WORKDIR /workdir
ENV DEBIAN_FRONTEND=noninteractive

Expand Down Expand Up @@ -26,7 +26,7 @@ RUN rm -f sim_telarray/corsika-run && \
mv sim_telarray/corsika-77*/run sim_telarray/corsika-run && \
rm -rf sim_telarray/corsika-77*

From almalinux/9-minimal
FROM almalinux/9-minimal
WORKDIR /workdir
ENV DEBIAN_FRONTEND=noninteractive
COPY --from=build_image /workdir/sim_telarray/ /workdir/sim_telarray/
Expand Down

0 comments on commit 0c61a3e

Please sign in to comment.