add prefix for argocd commits

This commit is contained in:
Nico Schottelius 2024-10-13 12:24:57 +09:00
parent 559c0c45c4
commit 03ff4399a1

View file

@ -5,7 +5,7 @@ IKIWIKI=ikiwiki
VERSION=$(shell git describe --always)
ARGOCD_HOME=$$HOME/vcs/k8s-config/cluster/p10/apps/templates/
ARGOCD_YAML=nicoweb.yaml
ARGOCD_YAML=staticweb-nico.yaml
ARGOCD_APP=$(ARGOCD_HOME)/$(ARGOCD_YAML)
IMAGE_NAME=harbor.k8s.ungleich.ch/nico/www.nico.schottelius.org
@ -21,7 +21,7 @@ container: gitpush
argocd: container
sed -i "s,$(IMAGE_NAME):.*,$(IMAGE_NAME):$(VERSION)," $(ARGOCD_APP)
cd $(ARGOCD_HOME) && git add $(ARGOCD_YAML) && git commit -m "Update www.nico.schottelius.org to $(VERSION)" $(ARGOCD_YAML) && git push
cd $(ARGOCD_HOME) && git add $(ARGOCD_YAML) && git commit -m "[staticweb] Update www.nico.schottelius.org to $(VERSION)" $(ARGOCD_YAML) && git push
setup:
$(IKIWIKI) --refresh --setup ikiwiki.setup