REGISTRY ?= registry.haumdaucher.de IMAGE_NAME ?= moritzgrafde TAG ?= latest PLATFORM ?= linux/amd64 IMAGE ?= $(REGISTRY)/$(IMAGE_NAME):$(TAG) .PHONY: compile dev build tag push deploy all all: compile build tag push deploy compile: npm run build dev: npm run dev build: docker build --platform $(PLATFORM) -t $(IMAGE_NAME):$(TAG) . tag: docker tag $(IMAGE_NAME):$(TAG) $(IMAGE) push: docker push $(IMAGE) deploy: kubectl rollout restart deployment/moritzgrafde -n web kubectl rollout status deployment/moritzgrafde -n web