Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

MS v1.3, Auth0 Proxy and other Kafka changes #18

Merged
merged 4 commits into from
Mar 20, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
STS integration
  • Loading branch information
Gunasekar-K committed Mar 19, 2019
commit 2f85eb5b8a86ed248d7123127b24901e2a0c236c
36 changes: 28 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@ defaults: &defaults
install_dependency: &install_dependency
name: Installation of build and deployment dependencies.
command: |
apk add --no-cache bash
apk add --no-cache bash curl
apk add --no-cache jq py-pip sudo
sudo pip install awscli --upgrade
sudo pip install docker-compose
install_deploysuite: &install_deploysuite
name: Installation of install_deploysuite.
command: |
git clone --branch v1.3 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .
restore_cache_settings_for_build: &restore_cache_settings_for_build
key: docker-node-modules-lp-{{ checksum "package-lock.json" }}

Expand All @@ -25,15 +32,21 @@ jobs:
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
- restore_cache: *restore_cache_settings_for_build
- run: ./build.sh
- save_cache: *save_cache_settings
- deploy:
name: Running MasterScript.
command: |
git clone --branch v1.1 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
./master_deploy.sh -d ECS -e DEV -t latest -s leaderboard-processor -i leaderboard-processor
#git clone --branch v1.1 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
#cp ./../buildscript/master_deploy.sh .
#./master_deploy.sh -d ECS -e DEV -t latest -s leaderboard-processor -i leaderboard-processor
./awsconfiguration.sh DEV
source awsenvconf
./buildenv.sh -e DEV -b dev-leaderboard-processor-deployvar
source buildenvvar
./master_deploy.sh -d ECS -e DEV -t latest -s dev-global-appvar,dev-leaderboard-processor-appvar -i leaderboard-processor

# Build & Deploy against production backend
"build-prod":
Expand All @@ -42,28 +55,35 @@ jobs:
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
- restore_cache: *restore_cache_settings_for_build
- run: ./build.sh
- save_cache: *save_cache_settings
- deploy:
name: Running MasterScript.
command: |
git clone --branch v1.1 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
./master_deploy.sh -d ECS -e PROD -t latest -s leaderboard-processor -i leaderboard-processor
#git clone --branch v1.1 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
#cp ./../buildscript/master_deploy.sh .
#./master_deploy.sh -d ECS -e PROD -t latest -s leaderboard-processor -i leaderboard-processor
./awsconfiguration.sh PROD
source awsenvconf
./buildenv.sh -e PROD -b prod-leaderboard-processor-deployvar
source buildenvvar
./master_deploy.sh -d ECS -e PROD -t latest -s prod-global-appvar,prod-leaderboard-processor-appvar -i leaderboard-processor

workflows:
version: 2
build:
jobs:
# Development builds are executed on "develop" branch only.
- "build-dev":
context : org-global
filters:
branches:
only:
- circleci
- develop
- "build-prod":
context : org-global
filters:
branches:
only:
Expand Down