diff --git a/Dockerfile b/Dockerfile index c6db236..896e484 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Makefile b/Makefile index 6644e77..23d5307 100644 --- a/Makefile +++ b/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 . diff --git a/README.md b/README.md index 8fe4adb..7b8dd67 100644 --- a/README.md +++ b/README.md @@ -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