I currently am creating a pipeline for PR’s to run tests, and on merge to main run tests and push images to registry.
PR Build Jobs :
- Build & Test
Main Merge Jobs :
- Build & Test
- Modify Codebase
- Push images to registry
My assumption was that all jobs upon a merge would run before the code is merged to the main branch; this is important b/c one of the jobs I have modifies the code base. After that step, the code can be merged to the main branch in parellel to/after the images are getting pushed to a registry.
Is there a way to set this up ?