docker-keepalived/Makefile

32 lines
661 B
Makefile
Raw Normal View History

2015-06-09 18:41:43 +00:00
NAME = osixia/keepalived
2020-11-16 23:14:12 +00:00
VERSION = 2.1.5
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
2019-11-15 11:00:50 +00:00
tag:
docker tag $(NAME):$(VERSION) $(NAME):$(VERSION)
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)