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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,191
Community Members
 
Community Events
176
Community Groups

Running a Docker Image in pre-receive

Hi Team,

I would like to execute/run a Docker Image in pre-receive hook before pushing it to bitbucket repository. 


Is that possible?

 

Any sample code snipped would be appreciated here.


1 answer

0 votes
Mark C Atlassian Team Jul 14, 2022

Hi @yasreeb,

Welcome to the community.

Unfortunately, it is not possible to run Bitbucket Pipelines build in a pre-receive hook event.
This is because Bitbucket Cloud does not support server-side pre-receive hook at the moment.
We do have an existing feature request for it that can be located through this link. - https://jira.atlassian.com/browse/BCLOUD-10471
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.
Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy here.

What you can do for now is to have a workflow where you can push your commits first in a feature branch and run Pipelines builds for that feature branch.
Once all your tests/validations are passed, you can then merge that feature branch to your main branch (or your preferred branch).

Do let me know if you have further questions.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events