git.emilymaier.net site / master Makefile
master

Tree @master (Download .tar.gz)

Makefile @masterraw · history · blame

dev:
	rm -rf public
	hugo
	tar cfJ dev.tar.xz public/
	gsutil cp dev.tar.xz gs://emilymaier-site/
	kubectl apply -f ../cloud/dev.yaml
	URL=$$(echo http://$$(kubectl get -o json service/dev | jq -r ".status.loadBalancer.ingress[0].ip")); until $$(curl --output /dev/null --silent --head --fail $$URL); do sleep 1; done; firefox $$URL
	read -p "Press enter to destroy the server"
	kubectl delete deployment/dev

prod:
	rm -rf public
	hugo
	tar cfJ prod.tar.xz public/
	gsutil cp prod.tar.xz gs://emilymaier-site/
	firebase deploy