# Deploy button doesn't work

**URL:** <https://drone.discourse.group/t/deploy-button-doesnt-work/10472>\
**Category:** Drone Support\
**Created:** [August 20, 2020, 10:43am UTC](https://drone.discourse.group/t/deploy-button-doesnt-work/10472 "2020-08-20T10:43:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielnicolae3103](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/gabrielnicolae3103/32/3450_2.png) [@gabrielnicolae3103](https://drone.discourse.group/u/gabrielnicolae3103)\
**Post date:** [August 20, 2020, 10:43am UTC](https://drone.discourse.group/t/deploy-button-doesnt-work/10472/1 "2020-08-20T10:43:37Z")

</div>

Hi, I am trying to deploy a build but when I click ‘Deploy’ nothing happens.  
I get this error in my console  
 ![Screenshot from 2020-08-20 13-40-36](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/c/c46ac421c4d8df64f5cd9ecfe1fa8fc0f14b2061.jpeg)

Before this, I had a deploy that did work (two weeks ago)

---

<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:** [August 20, 2020, 1:11pm UTC](https://drone.discourse.group/t/deploy-button-doesnt-work/10472/2 "2020-08-20T13:11:12Z")

</div>

have you checked your server logs? returning a nil build would mean that no build was created. The likely root cause is that you are trying to promote a build, but your yaml has a `trigger` section that is evaluating to false, preventing the promotion. Your server logs would tell you more.

---

<div class="post-metadata">

**Author:** ![gabrielnicolae3103](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/gabrielnicolae3103/32/3450_2.png) [@gabrielnicolae3103](https://drone.discourse.group/u/gabrielnicolae3103)\
**Post date:** [August 20, 2020, 4:21pm UTC](https://drone.discourse.group/t/deploy-button-doesnt-work/10472/3 "2020-08-20T16:21:17Z")

</div>

These are my logs when I run ‘docker logs drone’

> {“commit”:“2c6fc6b8daaf03f3b897b3d2636a60e5da8ca394”,“event”:“promote”,“level”:“info”,“msg”:“trigger: skipping pipeline, does not match event”,“pipeline”:“default”,“ref”:“refs/heads/master”,“repo”:“medic-chat/medic-chat-v1”,“time”:“2020-08-20T16:17:24Z”}  
> {“commit”:“2c6fc6b8daaf03f3b897b3d2636a60e5da8ca394”,“event”:“promote”,“level”:“info”,“msg”:“trigger: skipping build, no matching pipelines”,“pipeline”:“default”,“ref”:“refs/heads/master”,“repo”:“medic-chat/medic-chat-v1”,“time”:“2020-08-20T16:17:24Z”}

And here is my .yml  
kind: pipeline  
type: docker  
name: default

```
steps:
  - name: build
    image: gabrielnicolae313/meteord:latest
    commands:
      - meteor npm install --alow-superuser
    volumes:
      - name: docker_socket
        path: /var/run/docker.sock

  - name: deploy-staging
    image: gabrielnicolae313/meteord:latest
    commands:
      # Deploy and sync db
      - sh deploy-staging.sh
      - sh sync-prod-with-staging-db.sh
    when:
      event: push # Execute this step only when somebody pushes to master

  - name: ui-testing
    image: cypress/browsers:chrome69
    commands:
      - sh run-cypress-tests-ci.sh
    when:
      event: push # Execute this step only when somebody pushes to master

  - name: deploy-sandbox
    image: gabrielnicolae313/meteord:latest
    commands:
      - sh deploy-sandbox.sh
    when:
      event:
      - promote
      target:
      - sandbox  

  - name: deploy-production
    image: gabrielnicolae313/meteord:latest
    commands:
      - sh deploy-production.sh
    when:
      event:
      - promote
      target:
      - production 

trigger:
  branch:
    - master
  event:
    - push
    
volumes:
  - name: docker_socket
    host:
      path: /var/run/docker.sock

```

---

<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:** [August 20, 2020, 9:23pm UTC](https://drone.discourse.group/t/deploy-button-doesnt-work/10472/4 "2020-08-20T21:23:17Z")

</div>

> [@gabrielnicolae3103](#):
>
> ```auto
> trigger:
> branch:
> - master
> event:
> - push
> 
> ```

when you promote a build, the event type will be `promote`. The trigger section, as defined above, would evaluate to false since it is limited to push events and would therefore not execute your pipeline.
