35 lines
641 B
Makefile
35 lines
641 B
Makefile
REGISTRY ?= registry.haumdaucher.de
|
|
IMAGE_NAME ?= haumdaucher-website
|
|
TAG ?= latest
|
|
PLATFORM ?= linux/amd64
|
|
NAMESPACE ?= haumdaucher
|
|
|
|
IMAGE ?= $(REGISTRY)/$(IMAGE_NAME):$(TAG)
|
|
|
|
.PHONY: compile dev test build tag push deploy all
|
|
|
|
all: compile build tag push deploy
|
|
|
|
compile:
|
|
npm run build
|
|
|
|
dev:
|
|
npm run dev
|
|
|
|
test:
|
|
npm test -- --run
|
|
|
|
build:
|
|
./deploy.sh
|
|
|
|
tag:
|
|
docker tag $(IMAGE_NAME):$(TAG) $(IMAGE)
|
|
|
|
push:
|
|
docker push $(IMAGE)
|
|
|
|
deploy:
|
|
kubectl apply -f ../../k8s/haumdaucher/haumdaucher.yaml
|
|
kubectl rollout restart deployment/haumdaucher-website -n $(NAMESPACE)
|
|
kubectl rollout status deployment/haumdaucher-website -n $(NAMESPACE)
|