title: Bitbucket pipeline use locally built image from previous step
body: <p>If I'd like to build a docker image in one pipeline step, then use it in a following step - how would I do that?</p>
  
  <p>eg</p>
  
  <pre><code>default:
      - step:
          name: Build
          image: 
          script:
            - docker build -t imagename:local .
            - docker images
      - step:
          name: Deploy
          image: 
          script:
            - docker images
  </code></pre>
  
  <p>In this example, the image shows up in the first step, but not the second</p>