forked from prometheus/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ crash.log | |
|
||
# OS X file | ||
static/.DS_Store | ||
|
||
prometheus_rsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.