From f7c46595e9c391aee912573f31ab6ae4d4633f93 Mon Sep 17 00:00:00 2001 From: nugaon Date: Wed, 29 Jul 2020 23:04:04 +0200 Subject: [PATCH] add makefile --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b8544a7 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +NAME = nugaon/kerberos-with-ldap +VERSION = 1.0.0 + +.PHONY: build build-nocache tag-latest push push-latest release git-tag-version + +build: + docker build -t $(NAME):$(VERSION) . + +build-nocache: + docker build -t $(NAME):$(VERSION) --no-cache . + +tag: + docker tag $(NAME):$(VERSION) $(NAME):$(VERSION) + +tag-latest: + docker tag $(NAME):$(VERSION) $(NAME):latest + +push: + docker push $(NAME):$(VERSION) + +push-latest: + docker push $(NAME):latest + +release: build tag-latest push push-latest + +git-tag-version: release + git tag -a v$(VERSION) -m "v$(VERSION)" + git push origin v$(VERSION)