Skip to content

Commit

Permalink
chore(pipeline): master-V2 pipeline (#186)
Browse files Browse the repository at this point in the history
- create a pipeline for master-V2

[ Fixes #164102566 ]
  • Loading branch information
CrispusKamau authored and Kachulio1 committed Mar 11, 2019
1 parent c02630e commit 2273254
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,4 @@ workflows:
branches:
only:
- develop-V2
- master-V2
8 changes: 8 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ set_variables() {
DEPLOYMENT_NAME="staging-v2-${PROJECT_NAME}"
export NODE_ENV=staging_v2
;;
master-V2)
IMAGE_TAG="production-v2-${COMMIT_HASH}"
ENVIRONMENT=production
GOOGLE_COMPUTE_ZONE=${PRODUCTION_ZONE}
GOOGLE_CLUSTER_NAME=${PRODUCTION_CLUSTER_NAME}
DEPLOYMENT_NAME="production-v2-${PROJECT_NAME}"
export NODE_ENV=production_v2
;;
*)
echo "Err: This branch should not deploy."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/slack_notification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ declare_env_variables() {
# SLACK_CHANNEL_HOOK : This is the webhook for the Slack App where notifications will be sent from
# DEPLOYMENT_CHANNEL : This is the channel on which the Slack notifications will be posted
# Some template for the Slack message
if [ ${CIRCLE_BRANCH} == "master" ]; then
if [ ${CIRCLE_BRANCH} == "master-V2" ]; then
ENVIRONMENT="production-v2"
else
ENVIRONMENT="staging-v2"
Expand Down

0 comments on commit 2273254

Please sign in to comment.