docker-keepalived/Makefile

29 lines
606 B
Makefile
Raw Normal View History

2015-06-09 18:41:43 +00:00
NAME = osixia/keepalived
2019-01-30 15:03:37 +00:00
VERSION = 2.0.12
2015-06-09 18:41:43 +00:00
2017-07-06 12:40:23 +00:00
.PHONY: build build-nocache test tag-latest push push-latest release git-tag-version
2015-06-09 18:41:43 +00:00
build:
docker build -t $(NAME):$(VERSION) --rm image
build-nocache:
docker build -t $(NAME):$(VERSION) --no-cache --rm image
2015-06-09 18:41:43 +00:00
test:
env NAME=$(NAME) VERSION=$(VERSION) bats test/test.bats
2017-07-06 12:40:23 +00:00
tag-latest:
docker tag $(NAME):$(VERSION) $(NAME):latest
2015-06-09 18:41:43 +00:00
2017-07-06 12:40:23 +00:00
push:
docker push $(NAME):$(VERSION)
push-latest:
docker push $(NAME):latest
2017-07-19 20:09:17 +00:00
release: build test tag-latest push push-latest
2017-07-06 12:40:23 +00:00
git-tag-version: release
git tag -a v$(VERSION) -m "v$(VERSION)"
git push origin v$(VERSION)