Overview

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

A digitalocean pipeline is a pipeline that executes 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
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
---
kind: pipeline
type: digitalocean
name: default

token:
  from_secret: token

steps:
- name: greeting
  commands:
  - echo hello world

...

The kind and type attributes define a digitalocean pipeline.

1
2
3
---
kind: pipeline
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
10
11
12
steps:
- name: greeting
  commands:
  - echo hello world