2009-10-26 08:42:19 +00:00
|
|
|
DESTDIR=/home/users/nico/privat/rechner/netz/seiten/www.nico.schottelius.org/dst/
|
2009-05-14 17:36:16 +00:00
|
|
|
PUBDIR=tee.schottelius.org:/home/services/www/nico/www.nico.schottelius.org/www/
|
2009-10-21 11:26:27 +00:00
|
|
|
BROWSER=conkeror
|
2010-03-12 17:19:04 +00:00
|
|
|
IKIWIKI=ikiwiki
|
2009-05-14 15:55:05 +00:00
|
|
|
|
2024-10-11 14:22:48 +00:00
|
|
|
VERSION=$(shell git describe --always)
|
2024-10-11 15:24:54 +00:00
|
|
|
ARGOCD_HOME=$$HOME/vcs/k8s-config/cluster/p10/apps/templates/
|
2024-10-11 15:00:55 +00:00
|
|
|
ARGOCD_YAML=nicoweb.yaml
|
2024-10-11 15:17:46 +00:00
|
|
|
ARGOCD_APP=$(ARGOCD_HOME)/$(ARGOCD_YAML)
|
|
|
|
|
|
|
|
IMAGE_NAME=harbor.k8s.ungleich.ch/nico/www.nico.schottelius.org
|
2024-10-11 15:00:55 +00:00
|
|
|
|
2024-10-11 15:24:54 +00:00
|
|
|
all: argocd
|
2024-10-11 14:22:48 +00:00
|
|
|
|
2024-10-11 15:24:54 +00:00
|
|
|
gitpush:
|
2013-11-13 15:01:46 +00:00
|
|
|
git push --mirror
|
2009-10-27 10:08:10 +00:00
|
|
|
|
2024-10-11 15:24:54 +00:00
|
|
|
container: gitpush
|
2024-10-11 14:22:48 +00:00
|
|
|
docker build -t harbor.k8s.ungleich.ch/nico/www.nico.schottelius.org:$(VERSION) .
|
|
|
|
docker push harbor.k8s.ungleich.ch/nico/www.nico.schottelius.org:$(VERSION)
|
2024-10-11 15:24:54 +00:00
|
|
|
|
|
|
|
argocd: container
|
2024-10-11 15:17:46 +00:00
|
|
|
sed -i "s,$(IMAGE_NAME):.*,$(IMAGE_NAME):$(VERSION)," $(ARGOCD_APP)
|
2024-10-11 15:30:35 +00:00
|
|
|
cd $(ARGOCD_HOME) && git add $(ARGOCD_YAML) && git commit -m "Update www.nico.schottelius.org to $(VERSION)" $(ARGOCD_YAML) && git push
|
2024-10-11 14:22:48 +00:00
|
|
|
|
2024-10-11 15:24:54 +00:00
|
|
|
setup:
|
|
|
|
$(IKIWIKI) --refresh --setup ikiwiki.setup
|
|
|
|
|
2010-03-12 17:24:24 +00:00
|
|
|
lall:
|
2010-04-08 20:08:24 +00:00
|
|
|
$(IKIWIKI) --refresh --setup ikiwiki.setup --set destdir=../dst --set srcdir=. --set git_wrapper= --set git_wrappermode= --set gitorigin_branch= --set gitmaster_branch=
|
2010-03-12 17:24:24 +00:00
|
|
|
|
2009-10-27 10:08:10 +00:00
|
|
|
all-unfresh:
|
2009-10-21 20:10:10 +00:00
|
|
|
$(IKIWIKI) --setup ikiwiki.setup
|
2009-05-14 15:55:05 +00:00
|
|
|
|
2010-04-08 20:39:19 +00:00
|
|
|
lall-unfresh:
|
|
|
|
$(IKIWIKI) --setup ikiwiki.setup --set destdir=../dst --set srcdir=. --set git_wrapper= --set git_wrappermode= --set gitorigin_branch= --set gitmaster_branch=
|
|
|
|
|
2010-03-12 17:24:24 +00:00
|
|
|
view:
|
2009-10-27 10:08:10 +00:00
|
|
|
$(BROWSER) ${DESTDIR}/index.html
|
|
|
|
|
2009-05-14 15:55:05 +00:00
|
|
|
clean: all
|
|
|
|
rm -rf ${DESTDIR}
|