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 buildernext
parent
643109309b
commit
156296ac05
|
@ -9,7 +9,9 @@ ARG SCCACHE_ENDPOINT
|
||||||
ARG SCCACHE_S3_USE_SSL
|
ARG SCCACHE_S3_USE_SSL
|
||||||
|
|
||||||
COPY . .
|
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
|
FROM valkum/docker-rust-ci:latest
|
||||||
WORKDIR /workdir
|
WORKDIR /workdir
|
||||||
|
@ -37,4 +39,4 @@ CMD ([ -z "${COMPLEMENT_CA}" ] && echo "Error: Need Complement PKI support" && t
|
||||||
sed -i "s/your.server.name/${SERVER_NAME}/g" caddy.json && \
|
sed -i "s/your.server.name/${SERVER_NAME}/g" caddy.json && \
|
||||||
/workdir/caddy start --config caddy.json > /dev/null && \
|
/workdir/caddy start --config caddy.json > /dev/null && \
|
||||||
/workdir/conduit
|
/workdir/conduit
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue