-
Notifications
You must be signed in to change notification settings - Fork 197
/
Makefile
31 lines (21 loc) · 663 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
NAME = osixia/phpldapadmin
VERSION = 0.9.0
.PHONY: build build-nocache test tag-latest push push-latest release git-tag-version
build:
docker build -t $(NAME):$(VERSION) --rm image
build-nocache:
docker build -t $(NAME):$(VERSION) --no-cache --rm image
test:
env NAME=$(NAME) VERSION=$(VERSION) bats test/test.bats
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 test tag-latest push push-latest
git-tag-version: release
git tag -a v$(VERSION) -m "v$(VERSION)"
git push origin v$(VERSION)