docker-keepalived/Makefile

21 lines
564 B
Makefile
Raw Normal View History

2015-06-09 18:41:43 +00:00
NAME = osixia/keepalived
2015-07-09 19:41:14 +00:00
VERSION = 0.1.2
2015-06-09 18:41:43 +00:00
.PHONY: all build test tag_latest release
all: build
build:
docker build -t $(NAME):$(VERSION) --rm image
test:
env NAME=$(NAME) VERSION=$(VERSION) bats test/test.bats
tag_latest:
docker tag -f $(NAME):$(VERSION) $(NAME):latest
release: build test tag_latest
@if ! docker images $(NAME) | awk '{ print $$2 }' | grep -q -F $(VERSION); then echo "$(NAME) version $(VERSION) is not yet built. Please run 'make build'"; false; fi
docker push $(NAME)
@echo "*** Don't forget to run 'twgit release/hotfix finish' :)"