From 3e71ab77de4d65cd6746abd0807e7deb08b91596 Mon Sep 17 00:00:00 2001 From: Konstantin Astakhov Date: Sat, 23 Nov 2024 23:03:38 +0700 Subject: [PATCH] delete mount cache folders --- .docker/Dockerfile-unique | 5 +---- .docker/Dockerfile-unique-release | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.docker/Dockerfile-unique b/.docker/Dockerfile-unique index f8a806f49a..91364bf31d 100644 --- a/.docker/Dockerfile-unique +++ b/.docker/Dockerfile-unique @@ -15,10 +15,7 @@ ARG FEATURES # of it to this day (Ignoring incremental compilation, which is explicitly disabled by CARGO_INCREMENTAL=0). Only the # fully built crates will be cached depending on the crate source, version and feature set, which are locked by # Cargo.lock, which can't be updated because of the --locked flag. -RUN --mount=type=cache,target=/usr/local/cargo/registry \ - --mount=type=cache,target=/usr/local/cargo/git \ - --mount=type=cache,target=/workdir/unique-chain/target \ - cd unique-chain && \ +RUN cd unique-chain && \ echo "Using runtime features ${FEATURES}" && \ CARGO_INCREMENTAL=0 cargo build --profile integration-tests --features=fast-inflation,"${FEATURES}" --locked && \ mv ./target/integration-tests/unique-collator /workdir/unique-chain/ && \ diff --git a/.docker/Dockerfile-unique-release b/.docker/Dockerfile-unique-release index c69f5e5437..099df43187 100644 --- a/.docker/Dockerfile-unique-release +++ b/.docker/Dockerfile-unique-release @@ -9,9 +9,6 @@ ARG FEATURES RUN git clone -b "$UNIQUE_VERSION" --depth 1 https://github.com/uniquenetwork/unique-chain.git && \ cd unique-chain && git checkout "$UNIQUE_HASH" && \ - --mount=type=cache,target=/usr/local/cargo/registry \ - --mount=type=cache,target=/usr/local/cargo/git \ - --mount=type=cache,target=/workdir/unique-chain/target \ CARGO_INCREMENTAL=0 cargo build --release --features="${FEATURES}" --locked && \ mv ./target/release/unique-collator /workdir/unique-chain/ && \ cd target/release/wbuild && find . -name "*.wasm" -exec sh -c 'mkdir -p "../../../wasm/$(dirname {})"; cp {} "../../../wasm/{}"' \;