I know this has be discussed multiple times but I still can’t figure out how to reach my goal.
I’m implementing a CICD Pipeline in which I have an “Integrate and Testing” phase (with “Test” and “Clean up” steps) and a “Deployment” phase. I would like to kick the Integrate and Testing pipeline only when a developer makes a pull request and the Deployment phase only when a maintainer merge the code. I was able to achieve the first one adding this to the drone.yml file:
when: event: - pull_request ref: - refs/pull/**
but for the Deployment phase I’m still not able to isolate the merge push event and the problem that I’m facing is that the Deployment pipeline starts every time a mantainer push some changes to the codebase because GH is (correctly) generating a webhook event because it see a push to the master branch. I tried to use triggers and events with no luck.
Is there any way to “isolate” the merge push request in the drone.yml file?