Sharing build using docker plugin

Hi

I have the following yml file

steps:
  - label: "build"
    command:
      - "yarn install"
    agents:
      queue: "v1"
    plugins:
      - docker#v3.5.0:
          mount-ssh-agent: true
          image: "cypress/browsers:node10.16.0-chrome77"

  - label: "compile scripts"
    command:
      - "yarn compile-scripts"
    agents:
      queue: "v1"
    plugins:
      - docker#v3.5.0:
          mount-ssh-agent: true
          image: "cypress/browsers:node10.16.0-chrome77"

  ... more steps 

I would like to use a single build step followed other steps such as unit tests, automation tests, etc. We’re using the docker plugin which is mounting the build agent. Is this the correct way to share the build between steps or is there a mount/volume/meta data approach I should be taking?

Hey @unexpectedsalmon,

I see you’ve also sent an email to support@buildkite.com.
I’ve sent you a reply via email – please let me know if it helps or not!

Regards,
Shevaun