Merge pull request #3 from drone-plugins/feature/docker-task
Added make task for building docker container
This commit is contained in:
commit
146cd70b2d
|
@ -1,8 +1,7 @@
|
||||||
# Docker image for the Drone Email plugin
|
# Docker image for the Drone Email plugin
|
||||||
#
|
#
|
||||||
# cd $GOPATH/src/github.com/drone-plugins/drone-email
|
# cd $GOPATH/src/github.com/drone-plugins/drone-email
|
||||||
# make deps build
|
# make deps build docker
|
||||||
# docker build --rm=true -t plugins/drone-email .
|
|
||||||
|
|
||||||
FROM alpine:3.2
|
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 GOOS ?= linux
|
||||||
export GOARCH ?= amd64
|
export GOARCH ?= amd64
|
||||||
|
@ -20,3 +20,6 @@ test:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build -ldflags '-s -w $(LDFLAGS)'
|
go build -ldflags '-s -w $(LDFLAGS)'
|
||||||
|
|
||||||
|
docker:
|
||||||
|
docker build --rm=true -t plugins/drone-email .
|
||||||
|
|
Loading…
Reference in a new issue