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

Commit 1b27d3c

Browse files
Update config.yml
[skip ci]
1 parent da7a5b7 commit 1b27d3c

File tree

1 file changed

+35
-12
lines changed

1 file changed

+35
-12
lines changed

.circleci/config.yml

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,21 @@ defaults: &defaults
55
install_dependency: &install_dependency
66
name: Installation of build and deployment dependencies.
77
command: |
8-
apk add --no-cache bash
8+
apk update
9+
apk add --no-cache bash curl
10+
apk upgrade
911
apk add --no-cache jq py-pip sudo
1012
sudo pip install awscli --upgrade
1113
sudo pip install docker-compose
14+
15+
install_deploysuite: &install_deploysuite
16+
name: Installation of install_deploysuite.
17+
command: |
18+
git clone --branch v1.3 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
19+
cp ./../buildscript/master_deploy.sh .
20+
cp ./../buildscript/buildenv.sh .
21+
cp ./../buildscript/awsconfiguration.sh .
22+
1223
restore_cache_settings_for_build: &restore_cache_settings_for_build
1324
key: docker-node-modules-la-{{ checksum "package-lock.json" }}
1425

@@ -17,6 +28,10 @@ save_cache_settings: &save_cache_settings
1728
paths:
1829
- node_modules
1930

31+
run_build: &run_build
32+
name: Build of Docker image
33+
command: ./build.sh
34+
2035
jobs:
2136
# Build & Deploy against development backend
2237
"build-dev":
@@ -25,44 +40,52 @@ jobs:
2540
- checkout
2641
- setup_remote_docker
2742
- run: *install_dependency
43+
- run: *install_deploysuite
2844
- restore_cache: *restore_cache_settings_for_build
29-
- run: ./build.sh
45+
- run: *run_build
3046
- save_cache: *save_cache_settings
3147
- deploy:
3248
name: Running MasterScript.
3349
command: |
34-
git clone --branch v1.1 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
35-
cp ./../buildscript/master_deploy.sh .
36-
./master_deploy.sh -d ECS -e DEV -t latest -s leaderboard-api -i leaderboard-api
50+
./awsconfiguration.sh DEV
51+
source awsenvconf
52+
./buildenv.sh -e DEV -b dev-leaderboard-api-deployvar
53+
source buildenvvar
54+
./master_deploy.sh -d ECS -e DEV -t latest -s dev-leaderboard-api-appvar -i leaderboard-api
3755
3856
# Build & Deploy against production backend
57+
3958
"build-prod":
4059
<<: *defaults
4160
steps:
4261
- checkout
4362
- setup_remote_docker
4463
- run: *install_dependency
64+
- run: *install_deploysuite
4565
- restore_cache: *restore_cache_settings_for_build
46-
- run: ./build.sh
66+
- run: *run_build
4767
- save_cache: *save_cache_settings
4868
- deploy:
4969
name: Running MasterScript.
5070
command: |
51-
git clone --branch v1.1 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
52-
cp ./../buildscript/master_deploy.sh .
53-
./master_deploy.sh -d ECS -e PROD -t latest -s leaderboard-api -i leaderboard-api
54-
71+
./awsconfiguration.sh PROD
72+
source awsenvconf
73+
./buildenv.sh -e PROD -b prod-leaderboard-api-deployvar
74+
source buildenvvar
75+
./master_deploy.sh -d ECS -e PROD -t latest -s prod-leaderboard-api-appvar -i leaderboard-api
76+
5577
workflows:
5678
version: 2
5779
build:
5880
jobs:
5981
# Development builds are executed on "develop" branch only.
6082
- "build-dev":
83+
context : org-global
6184
filters:
6285
branches:
63-
only:
64-
- circleci
86+
only: ["develop","circleci"]
6587
- "build-prod":
88+
context : org-global
6689
filters:
6790
branches:
6891
only:

0 commit comments

Comments
 (0)