Hello,
the idea is to define an IMAGE repository variable as a combination of default variables so that all steps in a pipeline can refer to it without redefining:
on the repo level in the "REpository variables":
IMAGE -
$BITBUCKET_REPO_SLUG_$BITBUCKET_BRANCH
in the pipeline:
steps:
- step: &Build_And_Scan
name: Build & Run Static Security Code Dependency Test
script:
- echo $IMAGE
- export DOCKER_FILE="dockerfile"
- docker builder build -t $IMAGE -f $DOCKER_FILE .