site/Makefile

18 lines
447 B
Makefile
Raw Normal View History

2015-02-06 22:59:15 +00:00
GIT_REV=`git rev-parse HEAD`
2015-02-07 00:16:46 +00:00
GITHUB_TOKEN=`cat ~/.token`
2015-02-06 22:59:15 +00:00
2015-02-07 19:49:53 +00:00
.PHONY: build test deploy
2015-02-06 22:31:15 +00:00
build:
docker build -t xena/site .
test: build
@echo "http://127.0.0.1:5000"
2015-02-06 22:45:49 +00:00
@echo "press ^C to kill the test server"
docker run -p 5001:38080 -p 5000:5000 --name site-$(GIT_REV) --rm -it -e GIT_REV=$(GIT_REV) -e GITHUB_TOKEN=$(GITHUB_TOKEN) xena/site /bin/bash
2015-02-07 19:49:53 +00:00
deploy:
git push
git push git@github.com:Xe/christine.website master
git push dokku master