I’m trying to see how to implement my pipeline in Drone CI. Basically, what I’m trying to implement can be best summarized by this:
(Source: relaxdiegio.com)
Some context:
- The top left box represents the source repo
- The following 3 boxes represent the various stages of my pipeline
So when I merge PR #1 in the above case, it will trigger the unit test + build + publish (to dev container registry) which will then trigger a deployment of that newly built image to the test (or dev if you prefer) environment. This stage involves executing long-running tests as shown by that long activation box labeled “1” in that stage’s lifeline.
At some point while build 1 is still being tested in the test/dev environment, builds 2 and 3 come in. Of course, they have to wait in queue since 1 is still busy but as soon as build 1 is done, i would like the pipeline to deploy and test build #3 in the test/dev environemnt and discard build #2 since the latter’s changes are already part of build #3 anyway.
How do I implement this behavior in Drone CI?

