Reviewed-on: #2 Co-authored-by: Luciano Giacchetta <giacchetta-@outlook.com> Co-committed-by: Luciano Giacchetta <giacchetta-@outlook.com>
19 lines
345 B
Makefile
19 lines
345 B
Makefile
NAMESPACE:= codyops
|
|
REGISTRY:= gianet.us/codyops
|
|
IMAGE:= nucleus
|
|
|
|
.PHONY: init build setup deploy
|
|
|
|
init:
|
|
direnv allow .
|
|
|
|
setup:
|
|
npm run setup
|
|
|
|
build: setup
|
|
npm run build
|
|
podman build --pull=newer --tag $(REGISTRY)/$(IMAGE) .
|
|
podman push $(REGISTRY)/$(IMAGE)
|
|
|
|
deploy:
|
|
kubectl -n $(NAMESPACE) rollout restart deployment/$(NAMESPACE)-$(IMAGE)
|