hello,
is there a way to pass docker's image between the steps of a pipeline?
something to this extent:
steps:
- step: &Build
name: Build an image
services:
- docker
script:
- export IMAGE=$BITBUCKET_REPO_SLUG_BLAH
- export DOCKER_FILE="dockerfile"
- docker builder build -t $IMAGE -f $DOCKER_FILE .
artifacts:
- $IMAGE
- step: &Deploy
name: Deploy Docker image
deployment: Test
services:
- docker
clone:
enabled: false
script:
- docker login -u $SERVICE_ACCOUNT -p $SERVICE_ACCOUNT_TOKEN
- docker push $IMAGE
pipelines:
custom:
Build:
- step: *Build_And_Scan
- step: *Deploy