1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-16 14:10:50 +01:00

Sync paths with CI pipeline due to dockerignore#

As the docker ignore file includes the target dir, content in this dir
is no accessible to the docker daemon.
We circumvent this by providing the build artifact in a dir called
cached_dir
This commit is contained in:
Valkum 2021-02-22 19:06:10 +01:00
parent fb9880fee9
commit aa7b6b6e09

View file

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