Skip to content

Commit

Permalink
Set up pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
HowlingEverett committed Feb 21, 2017
1 parent 5251b69 commit 601fad1
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 208 deletions.
File renamed without changes.
14 changes: 14 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
steps:
- name: ":docker: build image"
command: "bin/buildkite bin/ci build"
agents:
queue: native
docker: builder

- type: "waiter"

- name: ":shipit: Deploy experience docs"
command: "bin/buildkite bin/ci deploy-experience-docs"
agents:
queue: elastic
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
tmp
log
buildkit-script-*
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:6
MAINTAINER Ghost Developer <[email protected]>

RUN npm install -g [email protected] [email protected]

ENV HOME /srv/app
RUN mkdir $HOME
WORKDIR $HOME

ADD . $HOME/

RUN NODE_ENV=production lerna bootstrap
13 changes: 6 additions & 7 deletions bin/buildkite
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ if grep -q 'XXX' $0; then
exit 1
fi

export ANNOUNCE_ROBOT_SLACK_CHANNEL="XXX"
export ANNOUNCE_EMAIL_FROM="XXX"
export ANNOUNCE_EMAIL_FROM_NAME="XXX"
export ANNOUNCE_EMAIL_TO="XXX"
export APP="${APP:-XXX}"
export ANNOUNCE_ROBOT_SLACK_CHANNEL="experience"
export ANNOUNCE_EMAIL_FROM="[email protected]"
export ANNOUNCE_EMAIL_FROM_NAME="Everydayhero Experience Team"
export ANNOUNCE_EMAIL_TO="[email protected]"
export APP="${APP:-experience}"
export BRANCH="${BUILDKITE_BRANCH}"
export BUILD_NUMBER="${BUILDKITE_BUILD_NUMBER}"
export BUILD_URL="${BUILDKITE_BUILD_URL}"
export COMMIT="${BUILDKITE_COMMIT}"
export PRODUCTION_HEALTH_ENDPOINT='https://XXX.everydayhero.io/health'
export STAGING_HEALTH_ENDPOINT='https://XXX.everydayhero-staging.io/health'
export PRODUCTION_HEALTH_ENDPOINT='https://experience.everydayhero.io/health'
export JOB_ID="${BUILDKITE_JOB_ID}"

"$@"
1 change: 1 addition & 0 deletions bin/deploy → bin/deploy-experience-docs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

set -eou pipefail

cd packages/experience-docs
npm run deploy
39 changes: 0 additions & 39 deletions packages/experience-docs/.buildkite/pipeline-deploy-production.yml

This file was deleted.

45 changes: 0 additions & 45 deletions packages/experience-docs/.buildkite/pipeline-deploy-staging.yml

This file was deleted.

22 changes: 0 additions & 22 deletions packages/experience-docs/.buildkite/pipeline-tests.yml

This file was deleted.

94 changes: 0 additions & 94 deletions packages/experience-docs/.buildkite/pipeline.yml

This file was deleted.

3 changes: 2 additions & 1 deletion packages/experience-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"start": "brb serve --config='./webpack.shared.config'",
"build": "brb build --config='./webpack.shared.config'",
"deploy": "brb deploy --target s3 --bucket everydayhero.do --prefix experience.everydayhero.do",
"lint": "standard"
"lint": "standard",
"prepublish": "npm run build"
},
"author": "everydayhero",
"dependencies": {
Expand Down

0 comments on commit 601fad1

Please sign in to comment.