feat(projects): migrate haumdaucherde website into monorepo and document in AGENTS.md
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user