diff --git a/.github/workflows/DOCKER-PROD.yml b/.github/workflows/DOCKER-PROD.yml index 33990aa2..ee999017 100644 --- a/.github/workflows/DOCKER-PROD.yml +++ b/.github/workflows/DOCKER-PROD.yml @@ -93,7 +93,6 @@ jobs: path: | **/cargo-registry **/cargo-git - **/sccache key: cache-mount-${{ hashFiles('./operator/Dockerfile') }}-${{ hashFiles('./operator/Cargo.lock') }}-${{hashFiles('./operator/runtime/**/*.rs','./operator/pallets/**/*.rs', './operator/node/**/*.rs')}} restore-keys: | cache-mount-${{ hashFiles('./operator/Dockerfile') }}-${{ hashFiles('./operator/Cargo.lock') }} @@ -106,7 +105,6 @@ jobs: { "cargo-registry": { "target": "/usr/local/cargo/registry" }, "cargo-git": { "target": "/usr/local/cargo/git" }, - "sccache": { "target": "/usr/local/sccache" } } skip-extraction: ${{ steps.cache.outputs.cache-hit }} - name: Build and push Docker image diff --git a/operator/Dockerfile b/operator/Dockerfile index df41dd53..e1215f2b 100644 --- a/operator/Dockerfile +++ b/operator/Dockerfile @@ -44,12 +44,10 @@ WORKDIR /datahaven COPY --from=planner /datahaven/recipe.json recipe.json RUN --mount=type=cache,target=/usr/local/cargo/registry \ --mount=type=cache,target=/usr/local/cargo/git \ - --mount=type=cache,target=/usr/local/sccache,sharing=locked \ cargo chef cook --recipe-path recipe.json --release COPY . . RUN --mount=type=cache,target=/usr/local/cargo/registry \ --mount=type=cache,target=/usr/local/cargo/git \ - --mount=type=cache,target=/usr/local/sccache,sharing=locked \ if [ "$FAST_RUNTIME" = "TRUE" ]; then \ cargo build --locked --release --features fast-runtime; \ else \