add testresult example to readme

Signed-off-by: StefanSchoof <Stefan.Schoof@direkt-gruppe.de>
docker-19.03
StefanSchoof 2019-05-09 17:47:31 +00:00
parent 97b4b9a6db
commit c91e44a724
1 changed files with 13 additions and 0 deletions

View File

@ -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 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. Tar exporter is similar to local exporter but transfers the files through a tarball.
``` ```