21 lines
374 B
Makefile
Raw Normal View History

2018-01-26 12:38:19 +01:00
REPO=npenkov/docker-ldap-passwd-webui
VER=1.0
.PHONY: all build push
all: build docker push clean
build:
GOOS=linux go build -o ldap-pass-webui 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 ldap-pass-webui