build: Split docker target cache by target platform

This commit is contained in:
Jade Ellis 2025-05-20 22:47:55 +01:00 committed by magmaus3
parent 049f4db74d
commit cc31d45b9e
Signed by: magmaus3
GPG key ID: C8AABFABFA2FAF66

View file

@ -144,7 +144,7 @@ ENV CONTINUWUITY_VERSION_EXTRA=$CONTINUWUITY_VERSION_EXTRA
# Build the binary
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/local/cargo/git/db \
--mount=type=cache,target=/app/target \
--mount=type=cache,target=/app/target,id=cargo-target-${TARGETPLATFORM} \
bash <<'EOF'
set -o allexport
set -o xtrace