forked from IBM/guestbook
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
29 lines (22 loc) · 761 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
# Build all of the images in the guestbook example
# Usage:
# [REGISTRY="docker.io/ibmcom"] make build
REGISTRY?=docker.io/ibmcom
all: build
release: clean build push clean
# Build each image
build:
REGISTRY=${REGISTRY} make -C v1/guestbook build
REGISTRY=${REGISTRY} make -C v2/guestbook build
REGISTRY=${REGISTRY} make -C v2/analyzer build
# push the image to an registry
push:
REGISTRY=${REGISTRY} make -C v1/guestbook push
REGISTRY=${REGISTRY} make -C v2/guestbook push
REGISTRY=${REGISTRY} make -C v2/analyzer push
# remove previous images and containers
clean:
REGISTRY=${REGISTRY} make -C v1/guestbook clean
REGISTRY=${REGISTRY} make -C v2/guestbook clean
REGISTRY=${REGISTRY} make -C v2/analyzer clean
.PHONY: release clean build push