forked from kubevirt/kubevirt-ssp-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (36 loc) · 1.74 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Always keep the future version here, so we won't overwrite latest released manifests
OPERATOR_SDK_VERSION ?= v0.8.0
IMAGE_REGISTRY ?= quay.io/fromani
IMAGE_TAG ?= latest
OPERATOR_IMAGE ?= kubevirt-ssp-operator-container
REGISTRY_IMAGE ?= kubevirt-ssp-operator-registry
container-build: csv-generator container-build-operator container-build-registry
container-build-operator:
docker build -f build/Dockerfile -t $(IMAGE_REGISTRY)/$(OPERATOR_IMAGE):$(IMAGE_TAG) .
container-build-registry:
docker build -f build/Dockerfile.registry -t $(IMAGE_REGISTRY)/$(REGISTRY_IMAGE):$(IMAGE_TAG) .
container-push: container-push-operator container-push-registry
container-push-operator:
docker push $(IMAGE_REGISTRY)/$(OPERATOR_IMAGE):$(IMAGE_TAG)
container-push-registry:
docker push $(IMAGE_REGISTRY)/$(REGISTRY_IMAGE):$(IMAGE_TAG)
container-release:
./hack/docker-push.sh $(IMAGE_REGISTRY)/$(OPERATOR_IMAGE):$(IMAGE_TAG) $(IMAGE_REGISTRY)/$(REGISTRY_IMAGE):$(IMAGE_TAG)
csv-generator: operator-sdk
./build/make-csv-generator.sh
operator-sdk:
curl -JL https://github.com/operator-framework/operator-sdk/releases/download/$(OPERATOR_SDK_VERSION)/operator-sdk-$(OPERATOR_SDK_VERSION)-x86_64-linux-gnu -o operator-sdk
chmod 0755 operator-sdk
operator-courier:
pip3 install --user operator-courier
manifests-prepare:
mkdir -p _out
manifests-cleanup:
rm -rf _out
manifests: operator-courier csv-generator manifests-cleanup manifests-prepare operator-sdk
./hack/make-manifests.sh ${IMAGE_TAG}
./hack/release-manifests.sh ${IMAGE_TAG}
release: manifests container-build container-release
functests: manifests
cd functests && ./test-runner.sh
.PHONY: functests release manifests manifests-prepare manifests-cleanup container-push container-build container-release