How to Install Drone on OpenSUSE Latest

Step 1: Update Package Manager.

Before beginning the installation, update your OpenSUSE package manager by running the command below in your terminal window.

sudo zypper update

Step 2: Install Docker.

To install Drone on OpenSUSE, Docker is a prerequisite. Run the following command in your terminal to install Docker.

sudo zypper install docker

After installation, start the Docker daemon by running the command below.

sudo systemctl start docker

Step 3: Install Drone.

To install Drone on your OpenSUSE system, follow the steps below:

Step 3.1: Download Drone binary using curl command.

curl -L https://github.com/drone/drone-cli/releases/latest/download/drone_linux_amd64.tar.gz | tar zxvf -

Step 3.2: Move the extracted binary to /usr/local/bin.

sudo install -t /usr/local/bin drone

Step 4: Configure Drone.

After installation, configure Drone by creating a configuration file. Create a new file named .drone.yml in the root directory of your project and add the following content to it.

kind: pipeline
name: default

steps:
- name: build
  image: docker/compose:1.22.0
  commands:
    - docker-compose build

- name: test
  image: docker/compose:1.22.0
  commands:
    - docker-compose run test

Step 5: Start Drone.

Start Drone by running the following command in your terminal window.

drone server

Drone will start listening on http://localhost:8000.

Step 6: Configure Drone GitHub app.

To configure Drone GitHub app, follow the steps below:

Step 6.1: Login to GitHub, go to Settings → Developer settings → GitHub Apps and click New GitHub App button.

Step 6.2: Scroll down to Webhook section and add http://localhost:8000/hook as the Payload URL, select Let me select individual events. and check Pushes, Pull Requests, Issues and Repository under Repository.

Step 6.3: Scroll up to the General section, click Generate Private key and download the generated key in private.key file.

Step 6.4: Scroll back down to Webhook section, click on Add or remove repos button and select the repository you want to enable Drone for.

Step 6.5: Scroll up to the General section and copy the App ID.

Step 6.6: Run the following command in your terminal window to configure Drone GitHub app.

drone-github --id <APP_ID> --secret <GENERATED_PRIVATE_KEY> --org <ORGANIZATION_NAME>

Replace <APP_ID> with the App ID you copied in Step 6.5, <GENERATED_PRIVATE_KEY> with the content of the private.key file you downloaded in Step 6.3 and <ORGANIZATION_NAME> with the name of the organization you want to configure Drone for.

Step 7: Login to Drone.

Go to http://localhost:8000 in your web browser and login to Drone with your GitHub account.

After successful login, you will be redirected to the dashboard where you can see your repository with Drone enabled.

Congratulations! You have successfully installed and configured Drone on OpenSUSE.

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!