You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
504 B
YAML

# NOTE: Refer drone Go example http://readme.drone.io/0.5/usage/golang-example/
workspace:
base: /go
path: src/github.com/josebarn/drone-with-go
pipeline:
build:
image: golang
script:
- go get
7 years ago
- go build
unit-test:
image: golang
commands:
- go test ./api
9 years ago
publish:
image: plugins/docker
repo: josebarn/hello-world
tags: [ 1.0.0, 1.0, latest ]
dockerfile: ./docker/Dockerfile
secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ]
# debug: true