mirror of
https://github.com/nugaon/docker-kerberos-with-ldap.git
synced 2025-10-26 15:54:16 -04:00
add makefile
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@@ -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)
|
||||||
Reference in New Issue
Block a user