24 lines
399 B
Makefile
Raw Normal View History

2018-01-26 12:38:19 +01:00
REPO=npenkov/docker-ldap-passwd-webui
2018-09-21 10:06:27 +02:00
VER=1.2
2018-01-26 12:38:19 +01:00
.PHONY: all build push
2018-01-27 20:19:44 +01:00
all: init build docker push clean
2018-01-26 12:38:19 +01:00
2018-01-27 20:19:44 +01:00
init:
dep ensure
2018-01-26 12:38:19 +01:00
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