1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 09:46:57 +01:00

Merge pull request #67 from ascribe/feature/codeship

Codeship setup
This commit is contained in:
Matthias Kretschmann 2016-03-03 17:59:19 +01:00
commit 7ad45ee70b
4 changed files with 38 additions and 1 deletions

View File

@ -2,6 +2,8 @@
> Landing page for BigchainDB
[ ![Codeship Status for ascribe/bigchain-website](https://codeship.com/projects/3204bb70-c384-0133-9cd7-5a80e4317151/status?branch=master)](https://codeship.com/projects/138094)
[Live](https://www.bigchaindb.com) | [Beta](https://beta.bigchaindb.com) | [Styleguide](https://www.bigchaindb.com/styleguide/)
## Development
@ -28,7 +30,15 @@ Spin up local dev server and livereloading watch task, reachable under [https://
gulp
```
## Deployment
## Continuous Delivery
The site gets built & deployed automatically via Codeship under the following conditions:
- every push builds the site
- every push to the master branch initiates a live deployment
- every push to a branch starting with `feature` initiates a beta deployment
## Manual Deployment
The site is hosted in an S3 bucket and gets deployed via a gulp task.

7
_ci/build.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e;
gulp build --production
exit;

11
_ci/deploy.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e;
if [ $CI_BRANCH == "master" ]; then
gulp deploy:live
else
gulp deploy:beta
fi;
exit;

9
_ci/setup.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e;
npm install gulp -g
npm install
bundle install
exit;