Skip to content

Commit 1befb2d

Browse files
Add make target for easy-deploy
1 parent b445015 commit 1befb2d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,13 @@ ifneq ($(TAG:release-v%=%),$(TAG))
195195
endif
196196
endif
197197

198+
# easy-deploy can be used for building and pushing a custom image of MCAD and deploying it on your K8s cluster for development.
199+
# Example: "make easy-deploy TAG=yourtag USERNAME=rh_ee_jdoe"
200+
easy-deploy: images-podman
201+
podman tag localhost/mcad-controller:${TAG} quay.io/${USERNAME}/mcad-controller:${TAG}
202+
podman push quay.io/${USERNAME}/mcad-controller:${TAG}
203+
cd deployment && helm install mcad-controller mcad-controller --namespace kube-system --wait --set image.repository=quay.io/${USERNAME}/mcad-controller --set image.tag=${TAG}
204+
198205
run-test:
199206
$(info Running unit tests...)
200207
go test -v -coverprofile cover.out -race -parallel 8 ./pkg/...

0 commit comments

Comments
 (0)