Update drone.yml to new format

This commit is contained in:
Steven Polley 2018-12-22 23:18:12 -07:00
parent cc54877d5e
commit 41b033d4f2

View File

@ -1,18 +1,15 @@
workspace:
base: /go
path: src/deadbeef.codes/steven/mandelmapper
kind: pipeline
name: default
pipeline:
build:
image: golang:latest
commands:
- go version
- go get
- CGO_ENABLED=0 GOOS=linux go build -ldflags '-w'
publish:
image: plugins/docker
repo: deadbeef.codes:5000/mandelmapper
registry: deadbeef.codes:5000
tags:
- latest
- ${DRONE_COMMIT}
steps:
- name: build
image: golang
pull: always
environment:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
commands:
- go version
- go get
- go build -ldflags '-w'