Skip to content

Commit 6db5faa

Browse files
committed
Revert "fix at least one workflow"
This reverts commit 45342da.
1 parent 45342da commit 6db5faa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ WORKDIR /root/Mergen/build
2929

3030
# Default build argument for testing
3131
ARG TESTING=false
32+
ENV TESTING ${TESTING}
3233

3334
# Run cmake with the option to enable testing if TESTING is true
3435
RUN cmake .. ${TESTING:+-DMERGEN_TESTING=1} && cmake --build . -j $(nproc)
3536

3637
# Provide the built binary path as the default output for the container
3738
WORKDIR /root/Mergen/build
38-
#ENTRYPOINT ["/root/Mergen/build/lifter"]
39-
CMD ["cp", "/root/Mergen/build/lifter", "/output/lifter"]
39+
40+
# bash magic
41+
ENTRYPOINT ["/bin/bash", "-c", "if [ \"$TESTING\" == \"true\" ]; then /root/Mergen/build/lifter; else cp /root/Mergen/build/lifter /output/lifter; fi"]

0 commit comments

Comments
 (0)