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

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?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events