# Promotion without running previous steps

**URL:** <https://drone.discourse.group/t/promotion-without-running-previous-steps/9401>\
**Category:** Drone Support\
**Created:** [December 3, 2021, 12:34pm UTC](https://drone.discourse.group/t/promotion-without-running-previous-steps/9401 "2021-12-03T12:34:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Bowen](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@John\_Bowen](https://drone.discourse.group/u/John_Bowen)\
**Post date:** [December 3, 2021, 12:34pm UTC](https://drone.discourse.group/t/promotion-without-running-previous-steps/9401/1 "2021-12-03T12:34:00Z")

</div>

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:

```auto
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](http://discuss.harness.io/t/how-to-promote-a-build-to-production-without-running-all-steps/3378), 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

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [December 3, 2021, 6:34pm UTC](https://drone.discourse.group/t/promotion-without-running-previous-steps/9401/2 "2021-12-03T18:34:58Z")

</div>

if you don’t want a step to run for promotion events you can use the exclude syntax:

```auto
when:
  event:
    exclude:
    - promote

```

see [https://docs.drone.io/pipeline/conditions/#by-event](https://docs.drone.io/pipeline/conditions/#by-event) for more examples

---

<div class="post-metadata">

**Author:** ![John\_Bowen](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@John\_Bowen](https://drone.discourse.group/u/John_Bowen)\
**Post date:** [December 3, 2021, 7:17pm UTC](https://drone.discourse.group/t/promotion-without-running-previous-steps/9401/3 "2021-12-03T19:17:50Z")

</div>

Oh sorry i’ve missed that !

Thank you!
