This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Snap-CI for all deployments
- Loading branch information
snap-ci
committed
Jul 2, 2014
1 parent
a17d32f
commit 7b9550d
Showing
7 changed files
with
43 additions
and
72 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,9 +1,9 @@ | ||
# RapidFTR Guide | ||
|
||
[![Build Status](https://travis-ci.org/rapidftr/guide.svg?branch=master)](https://travis-ci.org/rapidftr/guide) | ||
[![Deployment Status](https://snap-ci.com/rapidftr/guide/branch/master/build_image)](https://snap-ci.com/rapidftr/guide/branch/master) | ||
|
||
* Uses [GitBook](//gitbook.io) to generate book from markdown | ||
* Commits are automatically compiled and deployed to GitHub pages using Travis | ||
* Commits are automatically compiled and deployed to GitHub pages using Snap-CI | ||
* Compiled website is **force-pushed** to gh-pages, so don't mess with the gh-pages branch in your development | ||
* To access the documentation, browse to: | ||
* [https://rapidftr.github.io/guide](//rapidftr.github.io/guide) |
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
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,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Reconstituting SSH key..." | ||
echo $DEPLOY_KEY | sed 's/\\n/\'$'\n/g' > id_guide | ||
chmod 600 id_guide | ||
|
||
export GIT_SSH=$(pwd)/go/ssh.sh | ||
export SSH_KEY=$(pwd)/id_guide | ||
|
||
set -xe | ||
|
||
echo "Cloning gh-pages..." | ||
rm -Rf gh-pages | ||
git config --global user.email "snap@snap-ci.org" | ||
git config --global user.name "snap-ci" | ||
git clone --quiet --branch=gh-pages git@github.com:rapidftr/guide.git gh-pages | ||
(cd gh-pages && git rm -rfq *) | ||
|
||
echo "Building site..." | ||
go/build.sh | ||
|
||
echo "Pushing result..." | ||
cd gh-pages | ||
git add -f . | ||
git commit --amend --allow-empty -q -m "Built $SNAP_COMMIT_SHORT" | ||
git push -fq origin gh-pages | ||
|
||
echo "Cleaning up..." | ||
rm -Rf ~/.ssh/id_guide* |
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,7 @@ | ||
#!/bin/sh | ||
|
||
if [ -z $SSH_KEY ]; then | ||
ssh "$@" | ||
else | ||
ssh -i "$SSH_KEY" "$@" | ||
fi |
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