Browse code

New 'make github-deploy' rule to deploy the docs to github-pages

Solomon Hykes authored on 2013/03/27 03:27:36
Showing 1 changed files
... ...
@@ -62,6 +62,11 @@ push:
62 62
 	@cd _build/html/ ; \
63 63
 	dotcloud push
64 64
 
65
+github-deploy: docs
66
+	rm -fr github-deploy
67
+	git clone ssh://git@github.com/dotcloud/docker github-deploy
68
+	cd github-deploy && git checkout -f gh-pages && git rm -r * && rsync -avH ../_build/html/ ./ && touch .nojekyll && echo "docker.io" > CNAME && git add * && git commit -m "Updating docs"
69
+
65 70
 $(VERSIONS):
66 71
 	@echo "Hello world"
67 72