forked from RedHatQE/managed-services-integration-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (22 loc) · 755 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
# Building cluster-sanity container
IMAGE_BUILD_CMD = "$(shell which podman 2>/dev/null || which docker)"
IMAGE_REGISTRY ?= "quay.io"
ORG_NAME ?= "redhat_msi"
IMAGE_NAME ?= "managed-services-integration-tests"
IMAGE_TAG ?= "latest"
FULL_OPERATOR_IMAGE ?= "$(IMAGE_REGISTRY)/$(ORG_NAME)/$(IMAGE_NAME):$(IMAGE_TAG)"
all: check poetry run_cluster_sanity_tests build-container push-container
publish-image: build-container push-container
check:
tox
poetry:
-poetry env remove --all
poetry install
poetry show
run_cluster_sanity_tests:
poetry run pytest tests/cluster_sanity
build-container:
$(IMAGE_BUILD_CMD) build --no-cache -f Dockerfile -t $(FULL_OPERATOR_IMAGE) .
push-container:
$(IMAGE_BUILD_CMD) push $(FULL_OPERATOR_IMAGE)
.PHONY: all