How to use output from one docker step in another?

docker
artifacts

#1

I have a circle.yml that looks like:

machine:
  services:
    - docker

dependencies:
  override:
    - make build

test:
  override:
    - make test
    - make check-coverage

where make test produces a coverage report and make check-coverage reads the coverage report. But because this is docker, the coverage report is lost when make test completes. What do I need to do to make the coverage report available to make check-coverage? Thanks!


#2

Nevermind. I just found the documentation on build artifacts.


#3

I take it back. The collection of artifacts only happens after all of the steps have completed. So my original question remains.


#4

A host mounted volume did the trick.


#5