2015-06-09 18:41:43 +00:00
|
|
|
NAME = osixia/keepalived
|
2017-10-22 09:35:47 +00:00
|
|
|
VERSION = 1.3.9
|
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
|
|
|
|
|
2015-12-14 18:26:21 +00:00
|
|
|
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:
|
2016-08-12 12:03:36 +00:00
|
|
|
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)
|