@@ -11,7 +11,7 @@ install_awscli: &install_awscli
11
11
install_deploysuite : &install_deploysuite
12
12
name : Installation of install_deploysuite.
13
13
command : |
14
- git clone --branch v1.3 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
14
+ git clone --branch master https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
15
15
cp ./../buildscript/master_deploy.sh .
16
16
cp ./../buildscript/buildenv.sh .
17
17
cp ./../buildscript/awsconfiguration.sh .
@@ -24,21 +24,22 @@ deploy_steps: &deploy_steps
24
24
- run : *install_awscli
25
25
- run : *install_deploysuite
26
26
- setup_remote_docker
27
- - run :
28
- name : " configuring aws environment"
29
- command : |
30
- ./awsconfiguration.sh $DEPLOY_ENV
31
- - run :
32
- name : " Building image for deploy"
33
- command : |
34
- source awsenvconf
35
- ./build.sh $DEPLOY_ENV
27
+ - run : docker build -t tc-project-service:latest .
36
28
- deploy :
37
- name : " Deploying software "
29
+ name : " Running Masterscript - deploy tc-project-service "
38
30
command : |
31
+ ./awsconfiguration.sh $DEPLOY_ENV
39
32
source awsenvconf
40
- ./deploy.sh $DEPLOY_ENV
33
+ ./buildenv.sh -e $DEPLOY_ENV -b ${VAR_ENV}-tc-project-service-deployvar
34
+ source buildenvvar
35
+ ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${VAR_ENV}-global-appvar,${VAR_ENV}-tc-project-service-appvar -i tc-project-service -p FARGATE
41
36
37
+ echo "======= Running Masterscript - deploy tc-project-service-consumers ==========="
38
+ if [ -e ${VAR_ENV}-tc-project-service-appvar.json ]; then sudo rm -vf ${VAR_ENV}-tc-project-service-appvar.json; fi
39
+
40
+ ./buildenv.sh -e $DEPLOY_ENV -b ${VAR_ENV}-tc-project-service-consumers-deployvar
41
+ source buildenvvar
42
+ ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${VAR_ENV}-global-appvar,${VAR_ENV}-tc-project-service-appvar -i tc-project-service -p FARGATE
42
43
43
44
jobs :
44
45
test :
@@ -71,18 +72,19 @@ jobs:
71
72
root : .
72
73
paths :
73
74
- dist
74
-
75
-
75
+
76
76
deployProd :
77
77
<< : *python_env
78
78
environment :
79
79
DEPLOY_ENV : " PROD"
80
+ VAR_ENV : " prod"
80
81
steps : *deploy_steps
81
82
82
83
deployDev :
83
84
<< : *python_env
84
85
environment :
85
86
DEPLOY_ENV : " DEV"
87
+ VAR_ENV : " dev"
86
88
steps : *deploy_steps
87
89
88
90
workflows :
@@ -96,7 +98,7 @@ workflows:
96
98
- test
97
99
filters :
98
100
branches :
99
- only : ['dev', 'feature/attachmentPermissions ']
101
+ only : ['dev', 'dev-sts ']
100
102
- deployProd :
101
103
context : org-global
102
104
requires :
0 commit comments