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_dirnext
parent
fb9880fee9
commit
aa7b6b6e09
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue