Overview

Updated 2 years ago by Admin

Please note Digital Ocean pipelines are disabled on Drone Cloud. This feature is only available when self-hosting

digitalocean pipeline runs shell commands on digitalocean droplets. The droplet is created when the pipeline starts and terminated upon completion. This is useful for workloads that need to run inside a dedicated virtual machine.

Example pipeline configuration:

1  ---
2 kind: pipeline
3 type: digitalocean
4 name: default
5
6 token:
7 from_secret: token
8
9 steps:
10 - name: greeting
11 commands:
12 - echo hello world
13
14 ...

The kind and type attributes define a digitalocean pipeline.

1  ---
2 kind: pipeline
3 type: digitalocean

The steps section defines a series of shell commands. These commands are executed on the remote digital ocean droplet. If any command returns a non-zero exit code, the pipeline fails and exits.

9  steps:
10 - name: greeting
11 commands:
12 - echo hello world


How did we do?