It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Best practice to run php tests on branches and docker build on tags



I have a PHP project (basic, with composer). I would like that when team members make a merge requests, there would be a pipeline that simply runs phpunit while on tags following a certain pattern there would be a docker build for an image that is then pushed.


Now the second part is already up and running, using 

image: atlassian/default-image:2
tags: v*:
- step:
- docker
- ... run docker build and push

So my question is:

is there a way to use another image for my purpose in the same pipeline file? From what I can see, I can't have two pipeline yml in the same project.


From what I gather, my next choice would be to run some docker commands against my own custom Docker image.


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,041 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you