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