Merge pull request #145 from docker/feat-test-cache

Add buildkit cache when running unit tests
This commit is contained in:
Chris Crone 2020-05-22 13:30:11 +02:00 committed by GitHub
commit 8f2c134c79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -63,4 +63,5 @@ COPY --from=make-cross /api/bin/* .
FROM base as test FROM base as test
ENV CGO_ENABLED=0 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