42 lines
1.4 KiB
Makefile
42 lines
1.4 KiB
Makefile
DESTDIR=/home/users/nico/privat/rechner/netz/seiten/www.nico.schottelius.org/dst/
|
|
PUBDIR=tee.schottelius.org:/home/services/www/nico/www.nico.schottelius.org/www/
|
|
BROWSER=conkeror
|
|
IKIWIKI=ikiwiki
|
|
|
|
VERSION=$(shell git describe --always)
|
|
ARGOCD_HOME=$$HOME/vcs/k8s-config/cluster/p10/apps/templates/
|
|
ARGOCD_YAML=nicoweb.yaml
|
|
ARGOCD_APP=$(ARGOCD_HOME)/$(ARGOCD_YAML)
|
|
|
|
IMAGE_NAME=harbor.k8s.ungleich.ch/nico/www.nico.schottelius.org
|
|
|
|
all: argocd
|
|
|
|
gitpush:
|
|
git push --mirror
|
|
|
|
container: gitpush
|
|
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)
|
|
|
|
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
|
|
|
|
setup:
|
|
$(IKIWIKI) --refresh --setup ikiwiki.setup
|
|
|
|
lall:
|
|
$(IKIWIKI) --refresh --setup ikiwiki.setup --set destdir=../dst --set srcdir=. --set git_wrapper= --set git_wrappermode= --set gitorigin_branch= --set gitmaster_branch=
|
|
|
|
all-unfresh:
|
|
$(IKIWIKI) --setup ikiwiki.setup
|
|
|
|
lall-unfresh:
|
|
$(IKIWIKI) --setup ikiwiki.setup --set destdir=../dst --set srcdir=. --set git_wrapper= --set git_wrappermode= --set gitorigin_branch= --set gitmaster_branch=
|
|
|
|
view:
|
|
$(BROWSER) ${DESTDIR}/index.html
|
|
|
|
clean: all
|
|
rm -rf ${DESTDIR}
|