From a20314c373f62d789cd3c7a5ae95ab30f9885b3e Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 3 Mar 2016 17:21:24 +0100 Subject: [PATCH 1/5] setup codeship scripts --- _ci/build.sh | 7 +++++++ _ci/deploy.sh | 9 +++++++++ _ci/setup.sh | 9 +++++++++ 3 files changed, 25 insertions(+) create mode 100644 _ci/build.sh create mode 100644 _ci/deploy.sh create mode 100644 _ci/setup.sh diff --git a/_ci/build.sh b/_ci/build.sh new file mode 100644 index 0000000..578d49d --- /dev/null +++ b/_ci/build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e; + +gulp build --production + +exit; diff --git a/_ci/deploy.sh b/_ci/deploy.sh new file mode 100644 index 0000000..3b87e36 --- /dev/null +++ b/_ci/deploy.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e; + +if [ $CI_BRANCH == "master" ]; then + gulp deploy:beta +fi; + +exit; diff --git a/_ci/setup.sh b/_ci/setup.sh new file mode 100644 index 0000000..0cf9922 --- /dev/null +++ b/_ci/setup.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e; + +npm install gulp -g +npm install +bundle install + +exit; From 2777ad0d3766550d1ab1e6cd48b1cb33c646c6ab Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 3 Mar 2016 17:23:02 +0100 Subject: [PATCH 2/5] chmod +x the scripts --- _ci/build.sh | 0 _ci/deploy.sh | 0 _ci/setup.sh | 0 3 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 _ci/build.sh mode change 100644 => 100755 _ci/deploy.sh mode change 100644 => 100755 _ci/setup.sh diff --git a/_ci/build.sh b/_ci/build.sh old mode 100644 new mode 100755 diff --git a/_ci/deploy.sh b/_ci/deploy.sh old mode 100644 new mode 100755 diff --git a/_ci/setup.sh b/_ci/setup.sh old mode 100644 new mode 100755 From 591ba15c1975d9601ec03c46072e55fc7ac21b2d Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 3 Mar 2016 17:46:59 +0100 Subject: [PATCH 3/5] switch to continuous delivery: live deploy master branch --- _ci/deploy.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_ci/deploy.sh b/_ci/deploy.sh index 3b87e36..62b8d7a 100755 --- a/_ci/deploy.sh +++ b/_ci/deploy.sh @@ -3,6 +3,8 @@ set -e; if [ $CI_BRANCH == "master" ]; then + gulp deploy:live +else gulp deploy:beta fi; From fb5160b7c1707370066f6c358208ec6371957d70 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 3 Mar 2016 17:54:45 +0100 Subject: [PATCH 4/5] document auto deployment --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 188920e..42de9a6 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,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. From d3327c9f98e1adf7e13c8bea3be857b82aa4a998 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 3 Mar 2016 17:56:56 +0100 Subject: [PATCH 5/5] add codeship badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 42de9a6..1d345ed 100644 --- a/README.md +++ b/README.md @@ -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