diff --git a/README.md b/README.md index 39605c0e..2df22966 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,19 @@ The local client will copy the files directly to the client. This is useful if B buildctl build ... --output type=local,dest=path/to/output-dir ``` +Another use case is to export test result file from the docker image. +```dockerfile +... +FROM scratch as testresult + +COPY --from=builder /usr/src/app/testresult.xml . +... +``` + +``` +buildctl build ... --opt target=testresult --output type=local,dest=path/to/output-dir +``` + Tar exporter is similar to local exporter but transfers the files through a tarball. ```