Skip to content
This repository was archived by the owner on Jan 31, 2018. It is now read-only.

Commit

Permalink
Merge pull request #13 from mozilla/relud-testing
Browse files Browse the repository at this point in the history
Setup github pages hosting and update README to reflect change
  • Loading branch information
relud committed Oct 7, 2014
2 parents daae43c + fbed0c4 commit e9d17a9
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
*~
/html/data
/gh-pages
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ and `resolution(.txt)?`.
2. write a `discovery.txt` file
3. commit it
4. push it up to github
5. push updates to the personastatus awsbox (must be a core dev with a key in https://github.com/mozilla/identity-pubkeys)
5. build and publish the update to gh-pages

git remote add personastatus.org [email protected]:git
git push personastatus.org master
scripts/build-gh-pages.sh
scripts/publish-gh-pages.sh

## How you resolve an incident

1. write a `resolution.txt` file in the directory
2. commit it
3. push it up to github
4. push updates to the personastatus awsbox (must be a core dev with a key in https://github.com/mozilla/identity-pubkeys)
5. build and publish the update to gh-pages

git remote add personastatus.org [email protected]:git
git push personastatus.org master
scripts/build-gh-pages.sh
scripts/publish-gh-pages.sh

## Some details

Expand Down
1 change: 1 addition & 0 deletions html/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
status.persona.org
25 changes: 25 additions & 0 deletions scripts/build-gh-pages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

set -e

cd "$(dirname "$0")/.."

if [ -z "$GH_TOKEN" ]; then
GH_URL="${GH_REF:-$(git config --get remote.origin.url)}"
else
GH_URL="${GH_TOKEN}@${GH_REF}"
fi

! test -e gh-pages || rm -rf gh-pages
git clone "$GH_URL" gh-pages --reference . --branch gh-pages --no-checkout
npm install
scripts/to_json.js
cp -a html/* gh-pages/
cp .git/config gh-pages/.git/config

cd gh-pages

git config user.email '[email protected]'
git config user.name 'Travis Build'
git add --all .
git commit -m 'Github Pages Build'
5 changes: 5 additions & 0 deletions scripts/publish-gh-pages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e
cd "$(dirname "$0")/../gh-pages"
git push origin gh-pages:gh-pages

0 comments on commit e9d17a9

Please sign in to comment.