This repository was archived by the owner on Jan 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from mozilla/relud-testing
Setup github pages hosting and update README to reflect change
- Loading branch information
Showing
5 changed files
with
38 additions
and
6 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/node_modules | ||
*~ | ||
/html/data | ||
/gh-pages |
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 |
---|---|---|
|
@@ -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 | ||
|
||
|
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 @@ | ||
status.persona.org |
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,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' |
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,5 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
cd "$(dirname "$0")/../gh-pages" | ||
git push origin gh-pages:gh-pages |