Fix context in cache dependency steps
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 6m40s
Some checks failed
Podman Rootless Demo / test-backend (push) Failing after 6m40s
This commit is contained in:
parent
869bec65c9
commit
d4cfa4799a
2 changed files with 5 additions and 5 deletions
|
|
@ -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: |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue