Missed Team ’24? Catch up on announcements here.

×
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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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