forked from microservices-demo/catalogue
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
24 lines (17 loc) · 626 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
NAME = weaveworksdemos/catalogue
DBNAME = weaveworksdemos/catalogue-db
TAG=$(TRAVIS_COMMIT)
INSTANCE = catalogue
.PHONY: default copy test
default: test
release:
docker build -t $(NAME) -f ./docker/catalogue/Dockerfile .
test:
GROUP=weaveworksdemos COMMIT=test ./scripts/build.sh
./test/test.sh unit.py
./test/test.sh container.py --tag $(TAG)
dockertravisbuild: build
docker build -t $(NAME):$(TAG) -f docker/catalogue/Dockerfile-release docker/catalogue/
docker build -t $(DBNAME):$(TAG) -f docker/catalogue-db/Dockerfile docker/catalogue-db/
docker login -u $(DOCKER_USER) -p $(DOCKER_PASS)
scripts/push.sh