-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
37 lines (33 loc) · 1.28 KB
/
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
35
36
37
LIBERTY_VERSION=24.0.0.11
JAVA8_IMAGE_VERSION=$(LIBERTY_VERSION)-java8
JAVA8_RUNTIME_IMAGE_VERSION=$(LIBERTY_VERSION)-runtime-java8
JAVA11_IMAGE_VERSION=$(LIBERTY_VERSION)-java11
JAVA11_RUNTIME_IMAGE_VERSION=$(LIBERTY_VERSION)-runtime-java11
JAVA17_IMAGE_VERSION=$(LIBERTY_VERSION)-java17
JAVA17_RUNTIME_IMAGE_VERSION=$(LIBERTY_VERSION)-runtime-java17
JAVA21_IMAGE_VERSION=$(LIBERTY_VERSION)-java21
JAVA21_RUNTIME_IMAGE_VERSION=$(LIBERTY_VERSION)-runtime-java21
NAMESPACE?=ibmcom
PROD_NAMESPACE?=ibmcom
PLATFORM=websphere-liberty-s2i
IMAGE_NAME=${NAMESPACE}/${PLATFORM}
BUILD_IMAGE_NAME=${PROD_NAMESPACE}/${PLATFORM}
build = ./build.sh
script_env = \
IMAGE_NAME=$(IMAGE_NAME) \
BUILD_IMAGE_NAME=${BUILD_IMAGE_NAME} \
LIBERTY_VERSION=$(LIBERTY_VERSION) \
JAVA8_IMAGE_VERSION=$(JAVA8_IMAGE_VERSION) \
JAVA8_RUNTIME_IMAGE_VERSION=$(JAVA8_RUNTIME_IMAGE_VERSION) \
JAVA11_IMAGE_VERSION=$(JAVA11_IMAGE_VERSION) \
JAVA11_RUNTIME_IMAGE_VERSION=$(JAVA11_RUNTIME_IMAGE_VERSION) \
JAVA17_IMAGE_VERSION=$(JAVA17_IMAGE_VERSION) \
JAVA17_RUNTIME_IMAGE_VERSION=$(JAVA17_RUNTIME_IMAGE_VERSION) \
JAVA21_IMAGE_VERSION=$(JAVA21_IMAGE_VERSION) \
JAVA21_RUNTIME_IMAGE_VERSION=$(JAVA21_RUNTIME_IMAGE_VERSION)
.PHONY: build
build:
$(script_env) $(build)
.PHONY: test
test:
$(script_env) TEST_MODE=true $(build)