Merge pull request #3 from drone-plugins/feature/docker-task

Added make task for building docker container
This commit is contained in:
Thomas Boerger 2015-12-15 12:50:43 +01:00
commit 146cd70b2d
3 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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 .

View file

@ -48,8 +48,7 @@ EOF
Build the Docker container using `make`:
```sh
make deps build
docker build --rm=true -t plugins/drone-email .
make deps build docker
```
### Example