Skip to content
Snippets Groups Projects

fix: add set -e to xl.Dockerfile to fail when detector build fails

Merged Wouter Deconinck requested to merge xl-dockerfile-set-e into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -31,6 +31,7 @@ ADD https://api.github.com/repos/eic/epic /tmp/epic.json
@@ -31,6 +31,7 @@ ADD https://api.github.com/repos/eic/epic /tmp/epic.json
COPY setup_detectors.py /tmp
COPY setup_detectors.py /tmp
COPY --from=detectors detectors.yaml /tmp
COPY --from=detectors detectors.yaml /tmp
RUN --mount=type=cache,target=/ccache/,sharing=locked,id=${TARGETPLATFORM} <<EOF
RUN --mount=type=cache,target=/ccache/,sharing=locked,id=${TARGETPLATFORM} <<EOF
 
set -e
cd /tmp
cd /tmp
export CCACHE_DIR=/ccache
export CCACHE_DIR=/ccache
[ "z$NIGHTLY" = "z1" ] && NIGHTLY_FLAG="--nightly" || NIGHTLY_FLAG=""
[ "z$NIGHTLY" = "z1" ] && NIGHTLY_FLAG="--nightly" || NIGHTLY_FLAG=""
Loading