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

Pipeline with scan an image and then push docker image to ACR

Jamal Ashraf
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!
September 24, 2022

I would like to add scanner to scan an images during my pipeline and then push that image to Azure Container Registry. Would anyone please help me in this regard or someone has some solution for this problem? So for reference i have shared two solutions. If anyone has some sort of solution recommendation, it is welcome. Please share that. Otherwise anyone can transform the below solutions for BitBucket Pipeline PLEASE..

Solution for GitHub:


Solution for GitHub (from MICROSOFT) but expensive

2 answers

0 votes
Bo Christensen March 20, 2023

H Jamal Ashrafi, I read that you seems to have the same problem as me, thus I hope you found a solution and you are able to help me?

I have tried to solve this problem but have failed.

I need to build a docker image using bitbucket-pipelines and ACR.

I need examples of how to write the bitbucket-pipelines.yml

using 'az acr build' and how to push the image into ACR.



Bo Christensen


0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 28, 2022

Hi @Jamal Ashraf,

Welcome to the community.

For scanning Docker image vulnerabilities, we partnered with Snyk that can achieve that.
Having said that, you can check the following links below that may help and get you started with Bitbucket Cloud Pipelines + Snyk integration.

Hope it helps and do let me know if you have further questions.

Mark C

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events