1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-12-26 19:34:31 +01:00

Fix Complement CI paths

The final container tried to COPY from the default cargo target dir, but we only checked if cached_target is present.
We copy from cached_target to target when cached_target is present now in the builder
This commit is contained in:
Rudi Floren 2021-03-04 17:22:23 +00:00
parent 643109309b
commit 156296ac05

View file

@ -9,7 +9,9 @@ ARG SCCACHE_ENDPOINT
ARG SCCACHE_S3_USE_SSL
COPY . .
RUN test -e cached_target/release/conduit || cargo build --release
RUN mkdir -p target/release
RUN test -e cached_target/release/conduit && cp cached_target/release/conduit target/release/conduit || cargo build --release
FROM valkum/docker-rust-ci:latest
WORKDIR /workdir