Skip to content

Commit

Permalink
ci: improve docker cache
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux committed Nov 10, 2024
1 parent 32766dd commit 11894b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
/target/
/.dockerignore
/Dockerfile
/test.yaml
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ WORKDIR /app
RUN apk add --no-cache musl-dev

FROM base AS src
COPY . .
COPY Cargo.toml Cargo.lock ./
COPY src/ ./
COPY tests/ ./

FROM src AS test
RUN cargo check && cargo test
Expand Down

0 comments on commit 11894b4

Please sign in to comment.