Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket pipeline, different docker image tag based on branch name

Tim Clephas June 19, 2017

I have a 'main' repository where a docker image is created with a tag idential to the branch name.

I want to use this tag if another repository has the same branch name.

 

In other words, can the docker image specification dynamically be generated with a simple bash line?

Somethink like:

IMAGE_NAME=dockerhub/image/$BITBUCKET_BRANCH

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events