forked from jboss-container-images/rhdm-7-openshift-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 922 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
32
33
34
BUILD_ENGINE := docker
.DEFAULT_GOAL := all
# List of all images
IMAGES=decisioncentral controller kieserver
OVERRIDES := branch-overrides.yaml
# Build and test all images
.PHONY: all
# start to build and test the images
all: _all
_all:
@for f in $(shell make list-images); do make image image_name=$${f}; done
.PHONY: image
image_name=
image:
# if ignore_build is set to true, ignore the build
ifneq ($(ignore_build),true)
cekit --descriptor=${image_name}/image.yaml -v --redhat build --overrides-file ${image_name}/${OVERRIDES} ${BUILD_ENGINE}
endif
# if ignore_test is set to true, ignore the tests
ifneq ($(ignore_test),true)
cekit --descriptor=${image_name}/image.yaml -v --redhat test --overrides-file ${image_name}/${OVERRIDES} behave
endif
.PHONY: list-images
list-images:
@for image in ${IMAGES} ; do echo $$image ; done
.PHONY: generate_adocs
generate_adocs:
bash scripts/generate-adocs.sh ${branch}