# Cannot find .drone.yml in refs/heads/master:

**URL:** <https://drone.discourse.group/t/cannot-find-drone-yml-in-refs-heads-master/11208>\
**Category:** Drone Support\
**Created:** [October 1, 2018, 12:39pm UTC](https://drone.discourse.group/t/cannot-find-drone-yml-in-refs-heads-master/11208 "2018-10-01T12:39:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard87](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/richard87/32/4563_2.png) [@Richard87](https://drone.discourse.group/u/Richard87)\
**Post date:** [October 1, 2018, 12:39pm UTC](https://drone.discourse.group/t/cannot-find-drone-yml-in-refs-heads-master/11208/1 "2018-10-01T12:39:12Z")

</div>

Hi!

I just deployed Drone CI in a fresh cluster, and created a new `.drone.yml` file in our git repo:

```
kind: pipeline
name: project

steps:
  docker:
    image: plugins/docker
    auto_tag: true
    repo: example/project
    - dockerfile: Dockerfile
    secrets: [docker_username, docker_password]

```

(and set up the secrets under the repositories)

But the webhook from BitBucket times out, and in the server log, I get the error message.

---

<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:** [October 1, 2018, 3:11pm UTC](https://drone.discourse.group/t/cannot-find-drone-yml-in-refs-heads-master/11208/2 "2018-10-01T15:11:45Z")

</div>

Which version of drone are you using?

Unrelated to the error, a few things that jumped out with your yaml. I noticed the yaml that you copy/pasted above is invalid. If you run it thought a [yaml validator](http://yaml-online-parser.appspot.com/) you will get an error:

```plaintext
ERROR:

while parsing a block mapping
  in "<unicode string>", line 6, column 5:
        image: plugins/docker
        ^
expected <block end>, but found '-'
  in "<unicode string>", line 9, column 5:
        - dockerfile: Dockerfile
        ^

```

I also noticed you seem to be mixing syntax from 0.8 and 0.9 in your yaml file. So once you resolve the yaml parsing issues, make sure you align your syntax with the version of Drone you are using.

> and set up the secrets under the repositories

This makes me think you are using 0.8, because in 0.9 secrets are encrypted in the yaml

---

<div class="post-metadata">

**Author:** ![Richard87](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/richard87/32/4563_2.png) [@Richard87](https://drone.discourse.group/u/Richard87)\
**Post date:** [October 2, 2018, 9:01am UTC](https://drone.discourse.group/t/cannot-find-drone-yml-in-refs-heads-master/11208/3 "2018-10-02T09:01:22Z")

</div>

Hi! Thanks for responding…

I’m using this Docker image: [docker.io/drone/drone:0.8.5](http://docker.io/drone/drone:0.8.5)

Thanks, i fixed the bugs in the yaml

**But I also noticed I had called the file `.done.yaml` instead of `.drone.yaml` 😬**
