forked from pegasystems/docker-pega-web-ready
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
22 lines (16 loc) · 775 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
IMAGE_NAME := $(if $(IMAGE_NAME),$(IMAGE_NAME),"pega-ready")
VERSION := $(if $(VERSION),$(VERSION),"CUSTOM")
all: image
container: image
image:
docker build --build-arg VERSION=$(VERSION) -t $(IMAGE_NAME) . # Build image and automatically tag it as latest
test: image
# Build image for executing test cases against it
docker build --build-arg VERSION=$(VERSION) -t qualitytest . --target qualitytest
# Execute test cases
container-structure-test test --image qualitytest --config tests/pega-web-ready-testcases.yaml
container-structure-test test --image $(IMAGE_NAME) --config tests/pega-web-ready-release-testcases.yaml
push: image
docker tag $(IMAGE_NAME):latest $(IMAGE_NAME):$(VERSION)
docker push $(IMAGE_NAME):$(VERSION)
docker push $(IMAGE_NAME):latest