Skip to content

Commit

Permalink
chore(pipeline-deploy): create a deployment pipeline
Browse files Browse the repository at this point in the history
- a pipeline to deploy to production

[ Fixes #164100281]
  • Loading branch information
WinstonKamau committed Feb 21, 2019
1 parent 286a27f commit 64a5e37
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ workflows:
- develop
- master
- develop-V2
- master-v2
- master-V2
- deploy:
requires:
- upgrade-database
Expand All @@ -95,3 +95,4 @@ workflows:
- develop
- master
- develop-V2
- master-V2
7 changes: 7 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ set_variables() {
GOOGLE_CLUSTER_NAME=${STAGING_CLUSTER_NAME}
DEPLOYMENT_NAME="staging-v2-${PROJECT_NAME}"
;;
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}"
;;
*)
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 @@ -55,7 +55,7 @@ declare_env_variables() {
develop-V2)
ENVIRONMENT="Staging V2"
;;
master-v2)
master-V2)
ENVIRONMENT="Production V2"
;;
*)
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set_variables(){
INSTANCE_NAME=${STAGING_INSTANCE_NAME}
DATABASE_NAME=${STAGING_V2_DATABASE_NAME}
;;
master-v2)
master-V2)
APP_SETTINGS="Production"
VERSION="-v2"
CLOUDSQL_CONNECTION_NAME=${PRODUCTION_CLOUD_SQL_CONNECTION_NAME}
Expand Down

0 comments on commit 64a5e37

Please sign in to comment.