add testresult example to readme
Signed-off-by: StefanSchoof <Stefan.Schoof@direkt-gruppe.de>docker-19.03
parent
97b4b9a6db
commit
c91e44a724
13
README.md
13
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.
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue