When we define 'pull-requests': develop: - - - extra code Here in this case pull request run based on source branch and not a destination. From the above code, when you create PR from develop to master ( which is very common in industries) at that time your pipeline will run. But when someone raised PR from feat/notification_update to develop. At that time Pipeline will not work. Pipelines 'pull-request' is based on source branch & not a destination based.
CD depends on where you're deploying to. For example if you're throwing it on firebase, you'd just add your commands to deploy to firebase in one of the steps in the yaml file and include it in the appropriate step.
When we define
'pull-requests':
develop:
- - - extra code
Here in this case pull request run based on source branch and not a destination.
From the above code, when you create PR from develop to master ( which is very common in industries) at that time your pipeline will run.
But when someone raised PR from feat/notification_update to develop.
At that time Pipeline will not work.
Pipelines 'pull-request' is based on source branch & not a destination based.
Exactly
Thanks! Very helpful guide for a beginner in these topics
Glad it was helpful!
Thanks, this was super helpful, I've been wondering how CI/CD pipelines worked.
Good to hear!
So clear.... amazing!!!!!!
Glad you think so!
This is only for CI. What about CD?
CD depends on where you're deploying to. For example if you're throwing it on firebase, you'd just add your commands to deploy to firebase in one of the steps in the yaml file and include it in the appropriate step.
Nice!