# Execute job right now

**URL:** <https://drone.discourse.group/t/execute-job-right-now/10723>\
**Category:** Drone Support\
**Created:** [April 21, 2020, 5:24pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723 "2020-04-21T17:24:15Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skynet886](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Skynet886](https://drone.discourse.group/u/Skynet886)\
**Post date:** [April 21, 2020, 5:24pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/1 "2020-04-21T17:24:15Z")

</div>

Hello,

I can add scheduler for my repository for example for 1 hour and its ok. But how can i run my new project right now? I can restart it but i can not run fresh project.

---

<div class="post-metadata">

**Author:** ![ashwilliams1](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashwilliams1/32/5549_2.png) [@ashwilliams1](https://drone.discourse.group/u/ashwilliams1)\
**Post date:** [April 21, 2020, 6:21pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/2 "2020-04-21T18:21:18Z")

</div>

get started by:

1. activate your repository in the Drone user interface
2. create a .drone.yml for your repository
3. commit and push

when you push code, your source control management system (e.g github) will send a webhook to Drone to trigger a build.

---

<div class="post-metadata">

**Author:** ![Skynet886](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Skynet886](https://drone.discourse.group/u/Skynet886)\
**Post date:** [April 21, 2020, 7:56pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/3 "2020-04-21T19:56:11Z")

</div>

1. Imported, cloned. I see example repo in my drone.
2. How? Where? Into ubuntu or where?
3. How?

---

<div class="post-metadata">

**Author:** ![Skynet886](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Skynet886](https://drone.discourse.group/u/Skynet886)\
**Post date:** [April 21, 2020, 8:14pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/4 "2020-04-21T20:14:50Z")

</div>

Can you please give me a small / short instruction about point 2 and 3. Im newbie. I have a drone server in ubuntu via docker and sample repositories inside. Please tell me how can i create drone.yaml file, where can i put this and how i can push it for new build.

---

<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:** [April 21, 2020, 9:24pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/5 "2020-04-21T21:24:45Z")

</div>

We provide a quick start in the documentation:  
[https://docs.drone.io/quickstart/docker/](https://docs.drone.io/quickstart/docker/)

And you can read more about docker pipelines here:  
[https://docs.drone.io/pipeline/docker/overview/](https://docs.drone.io/pipeline/docker/overview/)

There are also some great community tutorials that you can use:

- [https://dev.to/alex\_barashkov/getting-started-with-open-source-drone-ci-4pgc](https://dev.to/alex_barashkov/getting-started-with-open-source-drone-ci-4pgc)
- [https://hackernoon.com/build-your-own-ci-cd-pipeline-with-drone-e43d7190989b](https://hackernoon.com/build-your-own-ci-cd-pipeline-with-drone-e43d7190989b)

---

<div class="post-metadata">

**Author:** ![Skynet886](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Skynet886](https://drone.discourse.group/u/Skynet886)\
**Post date:** [April 22, 2020, 8:18am UTC](https://drone.discourse.group/t/execute-job-right-now/10723/6 "2020-04-22T08:18:13Z")

</div>

bradrydzewski,

For example:

> **[Getting started with open-source Drone CI](https://dev.to/alex_barashkov/getting-started-with-open-source-drone-ci-4pgc)**
>
> If you are building your side project or startup and want to avoid spending too...

I maked everything to this line:

Defining build steps and pipelines in Drone is a simple process. Just add to your repository .drone.yml file and use yaml syntax to describe the steps. Here’s a simple example:

1. Where can i modify and Where is my drone.yml file? In linux? In github? I copied repository from github to drone and i see it. I also see in settings the drone.yml file but where is it? Where can i find this file and how can i push it to new build?

---

<div class="post-metadata">

**Author:** ![Skynet886](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Skynet886](https://drone.discourse.group/u/Skynet886)\
**Post date:** [April 22, 2020, 8:24am UTC](https://drone.discourse.group/t/execute-job-right-now/10723/7 "2020-04-22T08:24:48Z")

</div>

“The final step is to commit your `.drone.yml` to your repository and push your changes. When you push code, GitHub sends a webhook to Drone which in turn executes your pipeline.”

bradrydzewski,

I still dont know where is the drone.yml file and how to push it. I have github account and sample repo which i copied to drone.

From this tutorial i [https://dev.to/alex\_barashkov/getting-started-with-open-source-drone-ci-4pgc](https://dev.to/alex_barashkov/getting-started-with-open-source-drone-ci-4pgc) i done everything to this line

Defining build steps and pipelines in Drone is a simple process. Just add to your repository .drone.yml file and use yaml syntax to describe the steps. Here’s a simple example:

Where can i modify drone.yml file? In github account? How can i push it? From github website? Please help me. I dont know how to pushing it and where can i modify this file.

---

<div class="post-metadata">

**Author:** ![ashwilliams1](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashwilliams1/32/5549_2.png) [@ashwilliams1](https://drone.discourse.group/u/ashwilliams1)\
**Post date:** [April 22, 2020, 11:43am UTC](https://drone.discourse.group/t/execute-job-right-now/10723/8 "2020-04-22T11:43:08Z")

</div>

> Where can i modify drone.yml file?

The .drone.yml file is stored in the root directory of your git repository. You modify the file the same way you modify any other file in your repository … you open your favorite text editor, make changes to the file, and save it.

> How can i push it?

git has a command called `git push` that you use to commit changes to your local repository, which you can then push to the repository in github

```plaintext
git add .drone.yml
git commit -m "added my drone yaml"
git push origin master

```

---

<div class="post-metadata">

**Author:** ![Skynet886](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Skynet886](https://drone.discourse.group/u/Skynet886)\
**Post date:** [April 22, 2020, 2:26pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/9 "2020-04-22T14:26:01Z")

</div>

OK

I download repo from the github to local server with drone

When i changed and pushed:  
kusus@skynet:~/test/droneci$ git add .drone.yml  
kusus@skynet:~/test/droneci$ git commit -m “added my drone yaml”  
[master 4478452] added my drone yaml  
1 file changed, 1 insertion(+)  
kusus@skynet:~/test/droneci$ git push origin master  
Username for ‘[https://github.com](https://github.com)’: Skynet886  
Password for ‘[https://Skynet886@github.com](https://Skynet886@github.com)’:  
Counting objects: 3, done.  
Compressing objects: 100% (3/3), done.  
Writing objects: 100% (3/3), 322 bytes | 322.00 KiB/s, done.  
Total 3 (delta 2), reused 0 (delta 0)  
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.  
To [GitHub - Skynet886/droneci](https://github.com/Skynet886/droneci.git)  
f3bf6d0…4478452 master → master  
kusus@skynet:~/test/droneci$

But i dont see anything from the drone website, where is that?  
I have a drone as localhost 127.0.0.1

After push i dont see my changes and nothing from the drone side.

 ![Zrzut ekranu (33)](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/3/3399965e802f023e6862bf598aebbef8b224ca4c.jpeg) ![Zrzut ekranu (32)](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/d/d80bbd7deeced6c69c8cc68b391e354bc2a5ab8d.jpeg)

---

<div class="post-metadata">

**Author:** ![ashwilliams1](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashwilliams1/32/5549_2.png) [@ashwilliams1](https://drone.discourse.group/u/ashwilliams1)\
**Post date:** [April 22, 2020, 2:39pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/10 "2020-04-22T14:39:24Z")

</div>

GitHub cannot deliver webhooks to a local address of 127.0.0.1. GitHub can only deliver webhooks to _public_ addresses. You therefore would need to publicly expose your Drone instance using a public IP or public domain name that is reachable by GitHub.

This is also covered in our FAQ at [Nothing happens when I push code, no builds, or builds stuck in pending](http://discuss.harness.io/t/nothing-happens-when-i-push-code-no-builds-or-builds-stuck-in-pending/3424)

---

<div class="post-metadata">

**Author:** ![Skynet886](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Skynet886](https://drone.discourse.group/u/Skynet886)\
**Post date:** [April 22, 2020, 3:03pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/11 "2020-04-22T15:03:11Z")

</div>

Ok, but…

1 screen - my configuration

 ![Zrzut ekranu (34)](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/9/97312357dbf7715425e33dd00604362f7dc0fa2b.png)

I run docker via:

sudo docker run   
–volume=/var/lib/drone:/data   
–env=DRONE\_GITHUB\_CLIENT\_ID=625_**1fb   
–env=DRONE\_GITHUB\_CLIENT\_SECRET=174e361**_\*\*\*\*\*\*\*\*\*\*\*\*   
–env=DRONE\_RPC\_SECRET=c6\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*1   
–env=DRONE\_SERVER\_HOST=10.0.2.15   
–env=DRONE\_SERVER\_PROTO=http   
–publish=80:80   
–restart=always   
–detach=true   
–name=drone   
drone/drone:1

where 10.0.2.15 is my ip addr

When i start this my drone response from the 127.0.0.1/

 ![Zrzut ekranu (35)](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/2/217101a12abfca6c42eedf08ed55b1c2302eaa91.jpeg)

If i try open 10.0.2.15 it automatically redirect me to 127.0.0.1 and i have some error cookies…

 ![Zrzut ekranu (37)](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/3/3c15d848d356e5e3cff457155afb07448aeebd4f.jpeg) ![Zrzut ekranu (36)](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/d/d1752283dcbc91b0d8ae0d3f9290604a5cf0ae40.jpeg)

---

<div class="post-metadata">

**Author:** ![ashwilliams1](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ashwilliams1/32/5549_2.png) [@ashwilliams1](https://drone.discourse.group/u/ashwilliams1)\
**Post date:** [April 22, 2020, 3:08pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/12 "2020-04-22T15:08:56Z")

</div>

> [@On another topic](https://drone.discourse.group/t/7188/11):
>
> If i try open 10.0.2.15 it automatically redirect me to 127.0.0.1

because you need to update the oauth2 redirect URL to reflect your new address [1]. You should probably also clear your browser cache to remove old cookies that may be associated with the old address.

[1] [GitHub | Drone](https://docs.drone.io/server/provider/github/#create-an-oauth-application)

---

<div class="post-metadata">

**Author:** ![Skynet886](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Skynet886](https://drone.discourse.group/u/Skynet886)\
**Post date:** [April 22, 2020, 6:25pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/13 "2020-04-22T18:25:35Z")

</div>

I repaired it.  
So i pushed small change from git

 ![Zrzut ekranu (41)](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/a/a4d28ba994f8a86f3f98136c9ff499d8018d1c08.jpeg)

I have changes and i see it in repos in git:

 ![Zrzut ekranu (40)](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/7/71ebdce6bc4b960b3dcfbbf8caa8330b87deb184.png)

But i can not see anything in drone… hehe… Its steel death.

 ![Zrzut ekranu (39)](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/5/5c182aca537ca4ac0db4c9908544dd6abb5d09f5.png)

---

<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:** [April 22, 2020, 6:50pm UTC](https://drone.discourse.group/t/execute-job-right-now/10723/14 "2020-04-22T18:50:53Z")

</div>

As previously mentioned you need to use a public address or domain name, otherwise GitHub cannot send a webhook to your Drone instance to trigger a build. It looks like you are using `10.0.2.15` or `192.168.0.206` which are both private addresses. Neither of these addresses are reachable by GitHub which prevents GitHub from triggering builds on push.

If you continue to experience issues you will need to use this guide for further assistance: [Nothing happens when I push code, no builds, or builds stuck in pending](http://discuss.harness.io/t/nothing-happens-when-i-push-code-no-builds-or-builds-stuck-in-pending/3424)
