Hello,
I’m migrating from Gitlab CI to Drone CI (because Gitlab is too slow and overkill for me).
I try to migrate my CI/CD deployment worklow (so .gitlab-ci.yml) to Drone CI.
I have a pipeline with 1 test step, and 2 promotion steps. Something like that:
kind: pipeline
type: docker
name: default
steps:
- name: test
.......
- name: deploy_app_1
when:
event:
- promote
target:
- prod_app_1
.......
- name: deploy_app_2
when:
event:
- promote
target:
- prod_app_2
.......
My builds are running all tests when pushing new code, that’s good. But when I want to promote an app (for deployment in production), i trigger a promotion of prod_app_1 for example, then the test step is running again before the prod_app_1 step. So I lost time on running the test step again.
I don’t want to. I just want to run the promotion step (deployment), like in Gitlab CI with its manual job trigger. I’ve read the documentation, but I didn’t find any solution to do it ? I saw the topic How to promote a build to production without running all steps, but the response doesn’t seem to handle my case (i already have some targets and just want to ignore a previous step when promoting).
Regards