Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

rollout deployment in bitbucket pipeline

I was using bitbucket pipeline to deploy the docker image to AKS cluster.

at 1st time of creation of pods i used this command 

kubectl apply -f deployment.yaml

but for every commit the docker images are being updated and pushed to ACR but the deployment was unchanged.

who can i rollout this deployment for every commit.

please anyone can suggest any solution.

thanks in advance

1 answer

1 accepted

0 votes
Answer accepted

You need to:

  • build new docker image and tag it as new version
  • update the deployment.yaml with new image:tag
  • apply

So you are missing the second step.
If you are using the same tag, e.g. image:latest (which is a bad practice), then you'll need to set imagePullPolicy to always. See here for similar question.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

166 views 2 14
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