Added make task for building docker container
This commit is contained in:
parent
969221aae8
commit
4068fc88ea
|
@ -1,8 +1,7 @@
|
|||
# Docker image for the Drone Email plugin
|
||||
#
|
||||
# cd $GOPATH/src/github.com/drone-plugins/drone-email
|
||||
# make deps build
|
||||
# docker build --rm=true -t plugins/drone-email .
|
||||
# make deps build docker
|
||||
|
||||
FROM alpine:3.2
|
||||
|
||||
|
|
5
Makefile
5
Makefile
|
@ -1,4 +1,4 @@
|
|||
.PHONY: clean deps test build
|
||||
.PHONY: clean deps test build docker
|
||||
|
||||
export GOOS ?= linux
|
||||
export GOARCH ?= amd64
|
||||
|
@ -20,3 +20,6 @@ test:
|
|||
|
||||
build:
|
||||
go build -ldflags '-s -w $(LDFLAGS)'
|
||||
|
||||
docker:
|
||||
docker build --rm=true -t plugins/drone-email .
|
||||
|
|
Loading…
Reference in a new issue