Settings
Use the settings
section to configure the Digital Ocean instance type. The runner creates the instance and executes pipeline commands on the instance using the ssh protocol.
1 kind: pipeline
2 type: digitalocean
3 name: default
4
5 token:
6 from_secret: token
7
8 server:
9 image: docker-18-04
10 size: s-1vcpu-1gb
11 region: nyc1
12
13 steps:
14 - name: build
15 commands:
16 - go build
17 - go test
Digital Ocean Token
In the above example we provide the digital ocean token, sourced from a secret. This token is require in order to authenticate with the Digital Ocean API and create the server instance.
5 token:
6 from_secret: token
7
8 server:
9 image: docker-18-04
10 size: s-1vcpu-1gb
11 region: nyc1
12
13 steps:
14 - name: build
15 commands:
16 - go build
17 - go test