How to Install Drone on Windows 10

Drone is a continuous integration and delivery platform that helps automate software development workflows. Here's how to install Drone on your Windows 10 machine:

Prerequisites

Installing Drone

  1. Download the latest version of Drone from the official website - drone.io/">https://drone.io/. You can also use the following command to download Drone:

    curl -L https://github.com/drone/drone-cli/releases/latest/download/drone_windows_amd64.tar.gz | tar zx
    
  2. Extract the downloaded package to a directory of your choice.

  3. Open PowerShell or Command Prompt and navigate to the directory where you extracted Drone.

  4. Run the following command to start the Drone server:

    ./drone-server.exe
    
  5. Open another PowerShell or Command Prompt window and navigate to the same directory.

  6. Run the Drone agent with the following command:

    ./drone-agent.exe
    
  7. At this point, you should be able to access the Drone server by opening your browser and visiting http://localhost. If everything is working correctly, you should see the Drone login page.

Congratulations! You have successfully installed Drone on your Windows 10 machine.

Configuring Drone

To use Drone effectively, you need to configure it with your Git repository and Docker Hub credentials. Here's how to do it:

  1. Before you can use Drone, you need to create a new personal access token with your Git provider (e.g. GitHub, Bitbucket).

  2. After creating the token, navigate to your Drone server and click the Login button. Select your Git provider and enter your credentials.

  3. Once you have logged in, click the Sync button to sync your Git repositories with Drone.

  4. To give Drone access to Docker Hub, create a new environment variable using the following command:

    $Env:DRONE_REGISTRY="https://index.docker.io/v1/"
    
  5. Authenticate with Docker by running the following command:

    docker login --username <your-docker-username>
    
  6. Restart the Drone server with the following command:

    ./drone-server.exe --config=./drone-override.yml
    
  7. Now that your Git and Docker Hub credentials are set up, you can start creating and managing your Drone pipelines.

That's it! You now have a fully functioning Drone server on your Windows 10 machine. Enjoy automating your development workflows with Drone.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!