Skip to content

Commit

Permalink
Set up continuous deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
grobie committed Jun 3, 2015
1 parent 6a582e5 commit 7b70381
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ crash.log

# OS X file
static/.DS_Store

prometheus_rsa
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: ruby

script: make deploy
before_install:
- eval "$(ssh-agent -s)"
- openssl aes-256-cbc -K $encrypted_2ba894bc7c2f_key -iv $encrypted_2ba894bc7c2f_iv -in prometheus_rsa.enc -out prometheus_rsa -d
- chmod 600 prometheus_rsa
- ssh-add prometheus_rsa
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
compile:
rm -rf output
bundle exec nanoc

deploy: github_pages_export github_pages_push

github_pages_export: compile
cd output && \
echo prometheus.io > CNAME && \
git init && \
git config user.name "Travis CI" && \
git config user.email "[email protected]" && \
git add . && \
git commit --message="Static site builder output"

github_pages_push:
cd output && \
git push -f [email protected]:prometheus/prometheus.github.io master

.PHONY: compile deploy github_pages_export github_pages_push
Binary file added prometheus_rsa.enc
Binary file not shown.

0 comments on commit 7b70381

Please sign in to comment.