From d4cfa4799a299ec6fdc7af39dd312df13add5030 Mon Sep 17 00:00:00 2001 From: continuist Date: Sat, 20 Sep 2025 10:44:49 -0400 Subject: [PATCH] Fix context in cache dependency steps --- .forgejo/workflows/ci.yml | 8 ++++---- backend/Dockerfile.test-rust | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index a19967f..da18308 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -64,9 +64,9 @@ jobs: --cache-to "$CACHE_REPO" \ --cache-from "$CACHE_REPO" \ --target deps \ - -f backend/Dockerfile.test-rust \ + -f Dockerfile.test-rust \ -t "$PREBUILT_BACKEND_TEST_IMAGE:deps-${{ steps.cache-key.outputs.cache_key }}" \ - --layers + backend podman --remote push \ "$PREBUILT_BACKEND_TEST_IMAGE:deps-${{ steps.cache-key.outputs.cache_key }}" @@ -78,9 +78,9 @@ jobs: --layers \ --cache-from "$CACHE_REPO" \ --target runner \ - -f backend/Dockerfile.test-rust \ + -f Dockerfile.test-rust \ -t "$PREBUILT_BACKEND_TEST_IMAGE:test-${{ github.sha }}" \ - . + backend - name: Start PostgreSQL run: | diff --git a/backend/Dockerfile.test-rust b/backend/Dockerfile.test-rust index 4fc402d..9c8dfcf 100644 --- a/backend/Dockerfile.test-rust +++ b/backend/Dockerfile.test-rust @@ -6,7 +6,7 @@ WORKDIR /app FROM base AS planner RUN apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/* RUN cargo install --locked cargo-chef -COPY backend/ . +COPY . . RUN cargo chef prepare --recipe-path recipe.json # Deps: compile only external crates