Skip to content

Commit e13cc18

Browse files
Update config.yml
[skip ci]
1 parent d973008 commit e13cc18

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.circleci/config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,32 @@ jobs:
2727
git clone --branch master https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
2828
cp ./../buildscript/master_deply_v4.2.sh .
2929
./master_deply_v4.2.sh -d ECS -e DEV -t $CIRCLE_BUILD_NUM -s submission-processor-es
30+
31+
"build-prod":
32+
docker:
33+
- image: docker:18.06.0-ce-git
34+
steps:
35+
# Initialization.
36+
- checkout
37+
- setup_remote_docker
38+
- run:
39+
name: Installation of build dependencies.
40+
command: |
41+
apk add --no-cache bash
42+
apk add --no-cache jq py-pip sudo curl
43+
pip install --upgrade pip
44+
sudo pip install awscli --upgrade
45+
sudo curl -o /usr/local/bin/ecs-cli https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest
46+
sudo pip install docker-compose
47+
sudo chmod +x /usr/local/bin/ecs-cli
48+
- run:
49+
name: Installation of build dependencies.
50+
command: ./build.sh DEV
51+
- deploy:
52+
command: |
53+
git clone --branch master https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
54+
cp ./../buildscript/master_deply_v4.2.sh .
55+
./master_deply_v4.2.sh -d ECS -e PROD -t $CIRCLE_BUILD_NUM -s submission-processor-es
3056
3157
3258
workflows:
@@ -38,3 +64,7 @@ workflows:
3864
filters:
3965
branches:
4066
only: develop
67+
- "build-prod":
68+
filters:
69+
branches:
70+
only: master

0 commit comments

Comments
 (0)