File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -24,21 +24,22 @@ deploy_steps: &deploy_steps
2424 - run : *install_awscli
2525 - run : *install_deploysuite
2626 - 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 .
3628 - deploy :
37- name : " Deploying software "
29+ name : " Running Masterscript - deploy tc-project-service "
3830 command : |
31+ ./awsconfiguration.sh $DEPLOY_ENV
3932 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
4136
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
4243
4344jobs :
4445 test :
@@ -71,18 +72,19 @@ jobs:
7172 root : .
7273 paths :
7374 - dist
74-
75-
75+
7676 deployProd :
7777 << : *python_env
7878 environment :
7979 DEPLOY_ENV : " PROD"
80+ VAR_ENV : " prod"
8081 steps : *deploy_steps
8182
8283 deployDev :
8384 << : *python_env
8485 environment :
8586 DEPLOY_ENV : " DEV"
87+ VAR_ENV : " dev"
8688 steps : *deploy_steps
8789
8890workflows :
@@ -96,7 +98,7 @@ workflows:
9698 - test
9799 filters :
98100 branches :
99- only : ['dev', 'feature/attachmentPermissions ']
101+ only : ['dev', 'dev-sts ']
100102 - deployProd :
101103 context : org-global
102104 requires :
You can’t perform that action at this time.
0 commit comments