mirror of
https://github.com/docker/compose.git
synced 2026-10-20 19:02:47 +00:00
Add buildkit cache when running unit tests
Since running `go test` downloads dependencies we want to have them in the builder cache
This commit is contained in:
parent
39cd5036a6
commit
5d073028be
1 changed files with 2 additions and 1 deletions
|
|
@ -63,4 +63,5 @@ COPY --from=make-cross /api/bin/* .
|
|||
|
||||
FROM base as test
|
||||
ENV CGO_ENABLED=0
|
||||
RUN make -f builder.Makefile test
|
||||
RUN --mount=id=build,type=cache,target=/root/.cache/go-build \
|
||||
make -f builder.Makefile test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue