mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-28 12:50:36 +00:00
33 lines
416 B
YAML
33 lines
416 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: test
|
|
image: golang
|
|
commands:
|
|
- go build
|
|
- go test -v
|
|
|
|
services:
|
|
- name: redis
|
|
image: redis:localhost
|
|
ports:
|
|
- 6379
|
|
entrypoint:
|
|
- /bin/redis-server
|
|
command:
|
|
- --port
|
|
- 6380
|
|
- name: mysql
|
|
image: mysql:latest
|
|
ports:
|
|
- 3306
|
|
environment:
|
|
MYSQL_USERNAME: root
|
|
MYSQL_PASSWORD:
|
|
from_secret: password
|
|
|
|
depends_on:
|
|
- foo
|
|
- bar
|