In the first step in my pipeline, I am building my application with docker and deploying it to AWS ECR. However, in a follow up step, I would like to use those same build files I uploaded to AWS for a shell script. They need to be the same files I uploaded because each `npm run build` creates different hashed file names. How can I export the build folder from step 1 to use in future pipeline steps?
- step: &build-staging
name: Build and publish docker image
services:
- docker
caches:
- docker
script:
- docker build -t web . #/dist folder gets created and uploaded to AWS
- pipe: atlassian/aws-ecr-push-image:1.4.2
- step: &upload-source-maps-staging
name: Upload source maps
script:
- npm ci
- /bin/bash upload-source-maps.sh #I want to use the /dist folder created in the build-staging step above