Commit d50a9df6 authored by Julius Volz's avatar Julius Volz

Merge pull request #110 from prometheus/cd

Set up continuous deployment
parents 6a582e5f 7b70381c
......@@ -11,3 +11,5 @@ crash.log
# OS X file
static/.DS_Store
prometheus_rsa
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
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 "travis@prometheus.io" && \
git add . && \
git commit --message="Static site builder output"
github_pages_push:
cd output && \
git push -f git@github.com:prometheus/prometheus.github.io master
.PHONY: compile deploy github_pages_export github_pages_push
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment