In this tutorial, we will guide you through the steps to install Drone on your Void Linux system.
To install Drone, we need to use the Drone CLI.
$ curl -L https://github.com/drone/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz | tar zx
$ sudo install -t /usr/local/bin drone
$ drone --version
Drone needs a Docker network to function properly.
$ docker network create drone
$ docker run \
--volume=/var/run/docker.sock:/var/run/docker.sock \
--env=DRONE_AGENTS_ENABLED=true \
--env=DRONE_GITHUB_SERVER=https://github.com \
--env=DRONE_GITHUB_CLIENT_ID=<CLIENT_ID> \
--env=DRONE_GITHUB_CLIENT_SECRET=<CLIENT_SECRET> \
--env=DRONE_RPC_SECRET=<RANDOM_SECRET> \
--env=DRONE_SERVER_HOST=<YOUR_DOMAIN> \
--env=DRONE_SERVER_PROTO=https \
--env=DRONE_TLS_AUTOCERT=true \
--publish=80:80 \
--publish=443:443 \
--restart=always \
--detach=true \
--name=drone \
--network=drone \
drone/drone:1
Make sure to replace <CLIENT_ID>
, <CLIENT_SECRET>
, <RANDOM_SECRET>
and <YOUR_DOMAIN>
with your Github client ID, client secret, random secret and domain respectively.
To verify that Drone is running properly, open your browser and visit https://<YOUR_DOMAIN>
.
You will be prompted to login to your Github account and authorize Drone to access your repositories.
Once authorized, you will be redirected to your Drone dashboard where you can configure your projects.
Congratulations! You have successfully installed Drone on your Void Linux system. Happy CI/CD-ing!
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!