2018-01-26 12:38:19 +01:00
|
|
|
REPO=npenkov/docker-ldap-passwd-webui
|
2018-06-16 18:58:13 +02:00
|
|
|
VER=1.1
|
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
|