The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket Pipelines: Possible to use variable for image

Danny Verkade
Contributor
May 4, 2020

Hi, 

 

We have quite a few projects in Bitbucket Cloud and use Bitbucket Pipelines to build and deploy. All projects use the same bitbucket-pipelines-yml file. Some projects use PHP 7.2 and others 7.3. 

Is it possible to load the docker image to be used dynamically? I tried adding a variable called: "IMAGE" and in the bitbucket-pipelines.yml file change the image to: 

---
image:
name: $IMAGE

This results in an error. If this is possible we could easily configure which image needs to be used by all our projects and can change the image if we want on the repository variable.  

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
erik_telepovsky
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!
January 8, 2024

Hello. I am looking for the answer as well. Is it possible?

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events