drone-yaml/yaml/converter/legacy/internal/testdata/simple.yml
2019-01-22 15:44:17 -08:00

48 lines
734 B
YAML

workspace:
base: /go
path: src/github.com/octocat/hello-world
pipeline:
build:
image: golang
commands:
- go get
- go build
volumes:
- /tmp/go:/go/bin
environment:
- GOOS=linux
- GOARCH=amd64
test:
image: golang:latest
volumes:
- /tmp/go:/go/bin
commands:
- go test -v
docker:
image: plugins/docker
secrets:
- docker_username
- docker_password
repo: octocat/hello-world
when:
branch: master
slack:
image: plugins/slack
secrets:
- source: token
target: slack_token
channel: general
services:
database:
image: mysql
environment:
MYSQL_USERNAME: foo
MYSQL_PASSWORD: bar
branches:
- master