Skip to content

Commit

Permalink
Merge pull request #995 from StefanSchoof/localfileexample
Browse files Browse the repository at this point in the history
add testresult example to readme
  • Loading branch information
tonistiigi authored May 22, 2019
2 parents bb03b93 + 8547331 commit 321197f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
To export specific files use multi-stage builds with a scratch stage and copy the needed files into that stage with `COPY --from`.
```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.

```
Expand Down

0 comments on commit 321197f

Please sign in to comment.