Hello,
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
pipelines:
tags: v*:
- step:
services:
- docker
script:
- ... 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.
@Andrei Dascalu you can'have two pipelines yaml, but you can write different steps.
For example, you want to execute dev-test step and generally it is executed step master-test.
Regarding this,
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.
you can execute some steps you desire on tags also, not on branches only. Look at the doc how to configure pipeline code and use tags
https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/
Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.
Join the webinar ✨Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.