Skip to content

Instantly share code, notes, and snippets.

@tboerger
Last active October 9, 2019 13:00
Show Gist options
  • Save tboerger/4cb982e4130352c8a8e48a9dc3128d82 to your computer and use it in GitHub Desktop.
Save tboerger/4cb982e4130352c8a8e48a9dc3128d82 to your computer and use it in GitHub Desktop.
Drone YAML example for Docker runner
---
kind: pipeline
name: go-1.13
platform:
os: linux
arch: amd64
steps:
- name: test
image: golang:1.13
volumes:
- name: deps
path: /go
commands:
- go test
- name: build
image: golang:1.13
volumes:
- name: deps
path: /go
commands:
- go build
volumes:
- name: deps
temp: {}
---
kind: pipeline
name: go-1.12
platform:
os: linux
arch: amd64
steps:
- name: test
image: golang:1.12
volumes:
- name: deps
path: /go
commands:
- go test
- name: build
image: golang:1.12
volumes:
- name: deps
path: /go
commands:
- go build
volumes:
- name: deps
temp: {}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment