diff --git a/Makefile b/Makefile index bb9a4a6..fea4340 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,9 @@ -REPO=npenkov/docker-ldap-passwd-webui -VER=1.2 +.PHONY: all build -.PHONY: all build push - -all: init build docker push clean - -init: - dep ensure +all: build clean build: GOOS=linux go build -o docker-ldap-change-password-web-ui main.go -docker: - @echo "Building docker image" - docker build -t ${REPO}:${VER} -t ${REPO}:latest . - -push: - @echo "Pushing to dockerhub" - docker push ${REPO}:${VER} - docker push ${REPO}:latest - clean: - rm -rf docker-ldap-change-password-web-ui \ No newline at end of file + rm docker-ldap-change-password-web-ui \ No newline at end of file